Cocoa Applescript can';t打开应用程序

Cocoa Applescript can';t打开应用程序,cocoa,applescript,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 appli

我已经编写了一个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是一个启动服务错误,在接口文件
LSInfo.h
中解释:

在垃圾箱文件夹中时无法运行应用程序


RotorDCU是否可能在垃圾桶中?

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

在垃圾箱文件夹中时无法运行应用程序


RotorDCU
可能在垃圾桶里吗?

这个“xcode”标签是用来问关于IDE本身的问题,而不是任何与Mac相关的编程问题。“xcode”标签是用来问关于IDE本身的问题,而不是任何与Mac相关的编程问题。我印象深刻!我找不到任何东西。是的,RotorDCU在垃圾桶里。清空它可以执行“激活”脚本。“如果存在”现在说“RotorDCU有一个错误:无法继续存在。”这是一种好奇,但不是什么大问题。我真的很感动!我找不到任何东西。是的,RotorDCU在垃圾桶里。清空它可以执行“激活”脚本。“如果存在”现在说“RotorDCU出错:无法继续存在。”这只是好奇,但不是什么大问题。