Applescript newbie question again :) I am trying to create a small applescript that will allow me to select multiple items from a list of currently running applications and then quit those selected apps. Something like this works but rather than having to click on each dialog it would be much easier to chose from a list.
tell application "System Events"
repeat with p in every process
if background only of p is false then
display dialog "Would you like to quit " & name of p & "?" as string
end if
end repeat
end tell
Any and all help would be greatly appreciated!
Thanks!
& (name of every process whose (name is "AppName")
can be added to Michele Percich's and Parag Bafna's solutions to include specific menu bar applications by name.tell application processName to quit
can be used instead ofdo shell script "Killall " & quoted form of processName
.Try this:
you can use this script which is much simpler
You can try this