Browse the docs

Quit app

Asks an app to quit, or quits every open app except the ones you keep.

Quit app

Keyboard Maestro: QuitSpecificApp, QuitAll

Details #

Asks the app to quit, the same as choosing Quit from its menu. The app can save its work or ask you to confirm. If the app is not running, the step does nothing and says "wasn't running". The output lists the apps that were asked to quit.

Name the app with app (a bundle id or a name) or bundleId. To quit many apps, set all to true. That asks every regular app to quit except Finder and Switchboard. Add apps to except to keep them as well. Background and menu bar-only apps are left alone.

The step does not wait for the app to finish quitting. If a later step depends on it, add Wait with app and gone.

Parameters #

ParameterTypeRequiredValuesWhat it does
allyes / noQuit every regular app, except Finder and Switchboard.
apptextThe app to quit, by bundle id or name. Required unless all is on.
bundleIdtextAnother spelling of app.
exceptlist of textWith all, a list of apps (bundle ids or names) to keep. An app given together with all is also kept.
forceyes / noForce quit. The app gets no chance to save.

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Quit Safari politely
Do
  1. Quit Safari
  2. Wait for Safari, up to 10 s
Open in Switchboard to try it
Quit everything except Mail and Calendar
Do
  1. Quit all apps except Mail, Calendar
Open in Switchboard to try it

Gotchas #

  • An app with an open save dialog stays running until you answer it.

  • The step fails with "needs an app" if there is no app, bundleId or all.

In the palette #

Type quit (or kill, force quit) in the palette to list the running apps with their memory and how long they have been open, and press ⏎ to run this step for one of them. ⌥⏎ runs it with force on. The run shows in Activity as “System ▸ Quit Xcode”.

See also #

Hide app, Close window, Wait