Skip to content

Instantly share code, notes, and snippets.

@jbl0ndie
Created April 4, 2017 21:41
Show Gist options
  • Save jbl0ndie/65c97ca4e6e6c7c5b830cf684e144a9a to your computer and use it in GitHub Desktop.
Save jbl0ndie/65c97ca4e6e6c7c5b830cf684e144a9a to your computer and use it in GitHub Desktop.
Gracefully quit OS X application from command line
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