簡體   English   中英

如何為 Finder 設置 AppleScript 權利?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM