Jump to content
deusy

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.

Share this post


Link to post

+1

 

Looks like Alfred is "All or One" on this.

 

If that helps you, you can always create a quit all applications from Alfred's workflows templates (System command from hotkey). 

 

HTH.

Share this post


Link to post

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

Share this post


Link to post

@RodgerWWW

 

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...