We stand with Ukraine to help keep people safe. Join us
All Apps
Best AppsReviewsComparisonsHow-To
When you purchase through links on our site, we may earn an affiliate commission

Quit for Mac

Bash script to politely quit applications using Terminal.

Free
In English
Version 1.9.2
4.7
Based on 6 user rates

Quit overview

Quit is an executable bash script to make it quick and easy to politely quit applications from the command line.

This script takes one or more application names as arguments, and uses osascript to tell each one to quit. Unlike kill and killall, this allows applications to save files and perform any necessary operations before exiting.

What’s new in version 1.9.2

Version 1.9.2:
  • Fixes a bug introduced in 1.9.1 where 'quit all' would only quit one app and then generate error messages for the rest
  • Better bulletproofing on some unfortunately necessary GUI scripting for users and/or apps that don't use OS X's built-in autosave
  • Better handling of apps with quirky implementations of the quit command in their AppleScript libraries (ahem, iTunes)

Quit for Mac

Free
In English
Version 1.9.2
Write a detailed review about Quit

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
4.7

(9 Reviews of Quit)

  • Comments

  • User Ratings

gngramkishore
gngramkishore
Apr 18 2017
1.9.2
4.0
Apr 18 2017
4.0
Version: 1.9.2
That was a brilliant utility thanks to the developers. Just to get more of it, I would like to have following fixed for closing office files when there is a save as window shown and also a dialog displayed. FYI... The above were part of my OSX automation requirements. (: Thanks a lot.
Bottacco
Bottacco
Oct 9 2013
1.8
5.0
Oct 9 2013
5.0
Version: 1.8
This is a great CLI utility. It should be included in Darwin by default. Thank you to the developers for something useful and free. Cheers from Spain,
Kankei71
Kankei71
Jul 17 2011
1.6
4.0
Jul 17 2011
4.0
Version: 1.6
Like it :) What about 'quit all'?
Jerry-Krinock
Jerry-Krinock
Mar 26 2011
1.3
5.0
Mar 26 2011
5.0
Version: 1.3
Thank you, Jon. Apple should have included this in Mac OS X. The 'open' command has been in since NeXTSTEP. Why not 'quit'? Anyhow, I added an option '-f' which says to *not* print an error message if the requested app is not running. Following is the 'diff' output which shows the difference between Jon's original and mine. Users can add this option to the script using the 'patch' command on their Mac. Basic tutorial: http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial Intermediate tutorial: http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial Here's the patch text, created by diff. I hope that MacUpdate's system doesn't munge it up. 22a23,25 > # > # This is Jon's version 1.3, with the -f option added by > # Jerry Krinock, 20110325 27c30 < echo "Usage: `basename "$0"` [-a] [-p] [-s|n] " --- > echo "Usage: `basename "$0"` [-a] [-p] [-s|n] [-f] " 44a48 > echo " -f Do not print an error message if app is not running" 166c170,171 < while getopts "apns" opt --- > ignoreNotRunning="false" > while getopts "apnsf" opt 172a178 > f) ignoreNotRunning="true" ;; 206c212,215 < echo "No running application matches \"$arg\"" --- > if [[ $ignoreNotRunning == "false" ]] > then > echo "No running application matches \"$arg\"" > fi
Borlox
Borlox
Feb 6 2010
1.2
0.0
Feb 6 2010
0.0
Version: 1.2
The script allows you to quit a GUI application remotely while optionally saving unsaved changes in open documents. While this sounds like a good idea, it should be used with caution. Over an SSH connection, you have no way of knowing the state of the document you're saving. Maybe, since you left the computer, your cat or your three-year-old has filled the document buffer with gibberish, which you're now going to save in place of the original. A better plan would be never to leave open documents unsaved when getting up from the computer. Then you won't need this script. If you must quit an application remotely and you think it has unsaved changes, use Screen Sharing to view the document before saving it.
gngramkishore
gngramkishore
Apr 18 2017
4.0
Apr 18 2017
4.0
Version: null
Bottacco
Bottacco
Oct 9 2013
5.0
Oct 9 2013
5.0
Version: null
Kankei71
Kankei71
Jul 17 2011
4.0
Jul 17 2011
4.0
Version: null
Jerry-Krinock
Jerry-Krinock
Mar 26 2011
5.0
Mar 26 2011
5.0
Version: null
Ayub
Ayub
Aug 31 2009
5.0
Aug 31 2009
5.0
Version: null
Jichi
Jichi
Jul 22 2009
5.0
Jul 22 2009
5.0
Version: null