Answers:
查看此主题中msg 20中的脚本,并将其修改为您感兴趣的应用程序。
它将帮助您创建启动代理以在必要时进行检查和打开。
这减轻了运行Applescript应用程序的需要。
是的,您可以使用AppleScript执行所需操作。
首先,打开AppleScript Editor( /Applications/Utilities/AppleScript Editor.app )
然后将此代码插入编辑器:
tell application "System Events"
repeat
set running_apps to every application process's name
if running_apps does not contain "TextEdit" then
tell application "TextEdit" to activate
end if
end repeat
end tell
更换 TextEdit 与您想要观看的应用程序。然后将其另存为应用程序,并在需要保持应用程序打开时运行您保存的应用程序。
希望这可以帮助!