[英]How to set AppleScript Entitlements for Finder?
我需要在启用了沙箱的应用程序中使用 AppleScript。 只是使用诸如“告诉 Finder bla-bla-bla”之类的东西。 很简单。 我知道我需要在 Entitlements 中为 finder 做一个记录,如下所示:
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.mail</key>
<array>
<string>com.apple.mail.compose</string>
</array>
</dict>
有人知道 Xcode 中 Finder 的正确权利记录吗? 我尝试使用下一个选项:
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.finder</key>
<string>com.apple.finder</string>
</dict>
但它不起作用。
Finder 不支持scripting targets
因此您需要使用以前的临时异常。
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.finder</string>
</array>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.