Applescript无法打开应用程序

时间:2013-02-17 18:30:28

标签: cocoa applescript

我已经编写了一个不可编写脚本的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

1 个答案:

答案 0 :(得分:4)

错误-10660是启动服务错误,在接口文件LSInfo.h中解释:

  

在“废纸篓”文件夹中无法运行该应用

垃圾箱中有RotorDCU吗?