use*_*685 8 macos applescript exit
每当我尝试使用AppleScript退出应用程序时,都会出现以下错误
发生了类型为-9874的错误.
我正在使用的AppleScript命令是
tell application "app_name"
quit
end tell
Run Code Online (Sandbox Code Playgroud)
有人可以帮帮我吗?
Pau*_*l R 22
你确定"app_name"存在吗?如果确实存在,您确定它知道如何响应AppleEvents(是"AppleEvent-aware")吗?尝试以下测试 - 启动Activity Monitor
(in /Applications/Utilities
)并运行此脚本:
tell application "Activity Monitor"
quit
end tell
Run Code Online (Sandbox Code Playgroud)
这对我来说很好 - 如果它对您有效,那么问题可能出在您的特定应用程序上.如果它不适合你,那么你有一些与系统相关的问题 - 在不同的Mac上试试验证?
归档时间: |
|
查看次数: |
30889 次 |
最近记录: |