AppleScript新手问题再次:)我想创建一个小的applescript,这将允许我从当前运行的应用程序列表中选择多个项目,然后退出这些选定的应用程序。类似这样的工作,但不必点击每个对话框,从列表中选择会更容易。Applescript获取正在运行的应用程序的列表?
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
任何和所有的帮助将不胜感激!
谢谢!
就像一个魅力!我最后的问题是,如果没有killall命令,你会如何做到这一点?有点像,告诉应用程序selectedProcesses退出。谢谢! – user2555399
查看上面Parag脚本的底部。 – user2555399
编辑添加Parag的脚本部分。 –