mirror of
https://github.com/TermiT/Flycut.git
synced 2025-09-11 15:44:56 +08:00
For these builds, Apple Events sent to "System Events.App" will fail with -600 error codes unless these additional entitlements are granted: <!-- Required for builds without SANDBOXING defined. --> <key>com.apple.security.automation.apple-events</key> <true/> <!-- Required for sandboxed builds without SANDBOXING defined. --> <key>com.apple.security.temporary-exception.apple-events</key> <string>com.apple.systemevents</string> (Of course, Apple might not grant these permissions for versions submitted to the App Store.) This is because Apple introduced more privacy measures in Mojave that prohibit sandboxed apps from sending Apple events to other apps without either a scripting-targets entitlement or an apple-events temporary exception entitlement. However, "System Events.app" doesn't have any scripting entitlements that we could use. Hence, we must use the latter. "However, with App Sandbox you cannot send Apple events to other apps unless you configure a scripting-targets entitlement or an apple-events temporary exception entitlement." https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html The below post also documented the issue and solution in more details: https://www.jessesquires.com/blog/2018/11/17/executing-applescript-in-mac-app-on-macos-mojave/
25 lines
785 B
XML
25 lines
785 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>com.apple.developer.aps-environment</key>
|
|
<string>development</string>
|
|
<key>com.apple.developer.icloud-container-identifiers</key>
|
|
<array>
|
|
<string>iCloud.com.generalarcade.flycut</string>
|
|
</array>
|
|
<key>com.apple.developer.icloud-services</key>
|
|
<array>
|
|
<string>CloudKit</string>
|
|
</array>
|
|
<key>com.apple.security.app-sandbox</key>
|
|
<true/>
|
|
<key>com.apple.security.files.user-selected.read-write</key>
|
|
<true/>
|
|
|
|
<key>com.apple.security.automation.apple-events</key>
|
|
<true/>
|
|
<key>com.apple.security.temporary-exception.apple-events</key>
|
|
<string>com.apple.systemevents</string>
|
|
</dict>
|
|
</plist>
|