Jump to content

Workflow to selectively quit several apps at once

Recommended Posts

Often I'll have to open three or four apps to work on something, and then once I'm done with that task I want to quit just the apps I don't need any more. I can use the quit function to quit them all individually, but this is pretty tedious and time consuming when I have a lot of other apps in use. It would be awesome if I were able to select the ones I want to quit and then execute quit on just them, similar to the option+up buffer feature for files. I'm looking for a workflow that is able to do this.

Link to comment

Here is an AppleScript that polls System Events for all running apps and pops up a list for you to choose which apps to quit:

tell application "System Events"
set processList to ¬
  (name of every process where background only is false) & ¬
  (name of every process whose ¬
   (name is "AppName") or ¬
   (name is "AnotherAppName"))
tell me to set selectedProcesses to choose from list processList with prompt "Select process(es) to quit:" with multiple selections allowed
end tell
if the result is not false then
repeat with processName in selectedProcesses
  tell application processName to quit
end repeat
end if

You can select multiple apps to quit by using the ⌘ or ⇧ keys as well.


Just make a new workflow and pipe a hotley or keyword into the script above.


Original found HERE

Link to comment



That's very close to the built-in "Force quit" feature in OS X. 


Well, technically, yes ... but I find ⌘+⌥+⎋ to be a bit of a pain to force quit.

Also, the above script just quits the apps, not force quit.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...