【问题标题】:Control other app in my app(in sandbox)在我的应用程序中控制其他应用程序(在沙箱中)
【发布时间】:2014-08-10 03:51:24
【问题描述】:

我想在我的应用程序中使 Finder 小型化,所以我使用 ScriptingBridge 来控制 Finder。 但是,当我的应用程序在沙盒中时,它无法运行。

我在沙盒权利中添加了 com.apple.security.scripting-targets。这是代码

<key>com.apple.security.scripting-targets</key>
    <key>com.apple.finder</key>
    <array>
        <string>com.apple.finder.compose</string>
    </array>

【问题讨论】:

  • 此“撰写”权利不存在。查看如何找到目标的关键答案。

标签: macos cocoa applescript sandbox entitlements


【解决方案1】:

Finder 没有任何脚本访问组。您可以添加临时异常com.apple.security.temporary-exception.apple-eventsas documented here

要查找脚本目标,请参见此处:How can I know the Apple Event Access Groups used by an application?

但是,如果您想在 App Store 中分发您的应用程序,那么您就不走运了。通过编写 Finder 脚本,您的应用将不会通过审核进入 App Store。

【讨论】:

    猜你喜欢
    • 2013-06-20
    • 2011-01-22
    • 1970-01-01
    • 2012-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-05
    相关资源
    最近更新 更多