title: Shell script for closing all apps open dock via command line
body: <p>I'd like to run a script to close all apps currently open in my doc. Figured out how to do with with the following script, where <code>APPLICATIONNAME</code> is the name of the app in the dock currently open</p>
  
  <p><code>osascript -e 'quit app "APPLICATIONNAME"'</code></p>
  
  <p>Any ideas on how to expand this command to encompass all apps open inside the doc?</p>
  
  <p>Ideally we'd avoid using a <code>killall</code> flavor of script. As force closing running apps in bulk will pose risks in some circumstances</p>