小编use*_*399的帖子

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
Run Code Online (Sandbox Code Playgroud)

任何和所有的帮助将不胜感激!

谢谢!

macos applescript osx-mountain-lion

10
推荐指数
3
解决办法
9542
查看次数

标签 统计

applescript ×1

macos ×1

osx-mountain-lion ×1