AppleEvents / sandbox:返回errAEPrivilegeError,无权将AppleEvent发送到进程

时间:2014-11-24 09:31:34

标签: macos sandbox appleevents

我想使用Sandboxing使用Apple Script创建InDesign文档。 我的Apple脚本是:

告诉应用程序Adobe Indesign CS5.5 制作新文件 结束告诉

我的权利条目是: enter image description here

在Adobe InDesign CS5.5.app Info.plist中,Bundle标识符为com.adobe.InDesign 我尝试输入com.adobe.InDesign和com.adobe.indesign。

当我运行沙盒应用程序时,它只启动Adobe InDesign Application但不在其中创建任何文档。 我检查Console应用程序(在/ Applications / Utilities /中可用),在All Messages系统日志查询中查找沙箱违规,它会给出以下错误:

AppleEvents / sandbox:返回errAEPrivilegeError / -10004并拒绝从进程派遣事件ascr / gdte,因为它无权将AppleEvent发送到此进程。

应该使用什么权利条目来创建InDesign文档?

谢谢

1 个答案:

答案 0 :(得分:0)

如果我检查Adobe InDesign(OSX 10.10,InDesign CC 2015)的ID,它会显示“com.adobe.InDesign”< - 注册大写字母!对我来说,它可以在沙盒模式下使用您的权利使用该ID。

我从别人那里听说他们宁愿使用

tell application id "com.adobe.InDesign" to doSomeHandler()