Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Quit applications politely from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Quit applications politely from the command line
Authored by: Sesquipedalian on May 18, '10 04:11:40PM
Just a note that version 1.3 is available.

Usage: quit [-a] [-p] [-s|n] application names

Arguments are the names of one or more applications.
Arguments are not case sensitive.
Arguments with spaces should be quoted.

Options:

-a Match argument string with any of the application's name, displayed name, short name, or title. E.g.: `quit "Microsoft Word"` and `quit -a Word` will both quit Microsoft Word, because the app calls itself "Word" in the menu bar.

-p Use partial matches (e.g. edit for TextEdit). Prompts for confirmation.

-s Attempt to save modified files when quitting. Overrides any previous -n option.

-n Do not attempt to save modified files when quitting. Overrides any previous -s option.

If neither the -s or -n options are specified, quit will try to detemine if any documents require saving, and if necessary will ask the user whether to save or not.

[ Reply to This | # ]