Created
April 4, 2017 21:41
-
-
Save jbl0ndie/65c97ca4e6e6c7c5b830cf684e144a9a to your computer and use it in GitHub Desktop.
Gracefully quit OS X application from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e 'quit app "APPLICATIONNAME"' | |
i.e. | |
osascript -e 'quit app "Calculator"' | |
I used this before running a rsync (well Grsync actually) script, | |
so my database application wasn't running while it was backed up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment