M
M
Max Vecheslavov2016-11-17 15:38:32
Swift
Max Vecheslavov, 2016-11-17 15:38:32

Swift 3: How to allow AppleScript for Finder in sandbox?

Hello!
I need to use AppleScript in my application with sandbox enabled. Simple commands like "tell "Finder" to bla-bla-bla". Very simple. I realized that I need to create an Entitlement entry, something like:

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

Can anyone suggest the correct entry to communicate with Finder? Tried different options, for example:
<key>com.apple.security.scripting-targets</key>
    <dict>
        <key>com.apple.finder</key>
        <string>com.apple.finder</string>
    </dict>

But doesn't work. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question