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
Run Code Online (Sandbox Code Playgroud)
任何和所有的帮助将不胜感激!
谢谢!