gpt4 book ai didi

cocoa - Applescript 无法打开应用程序

转载 作者:行者123 更新时间:2023-12-03 16:28:56 35 4
gpt4 key购买 nike

我编写了一个无法编写脚本的 Mac 应用程序(尚),并且我想使用 Applescript 运行它。以下任一脚本都会收到“发生了类型 10660 的错误。”。经过几个小时的搜索,我没有找到解决方案,也没有找到错误的解释。

if exists application "RotorDCU" then
display dialog "Found." buttons {"OK"}
else
display dialog "Not found." buttons {"OK"}
end if

tell application "RotorDCU"
activate
end tell

最佳答案

错误-10660是启动服务错误,在接口(interface)文件LSInfo.h中进行了解释:

The app cannot be run when inside a Trash folder

RotorDCU 是否在垃圾箱中?

关于cocoa - Applescript 无法打开应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14924523/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com