Close applications on a Mac

At the end of the day, I like to close all of the apps on my Mac to start the day fresh. Before I started doing this, I'd have web pages left up that were open for days - long enough for me to lose the context of why I was even on that particular page. 

Now, each day can start a bit cleaner and without debris from the previous day.

This is the little script I use to do this: