Commit graph

8 commits

Author SHA1 Message Date
Daniel Le
221857e236 Fix "Launch Flycut on login" on older builds without SANDBOXING defined
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/
2022-02-13 03:54:03 +08:00
Mark Jerde
953d0d837d Add ability to select save locations
Tighten up app-sandbox support.
2022-01-23 21:47:21 -06:00
Gennadii Potapov
2bf2c3fbf1 Add Flycut helper to add start on login functionality in sandboxed environment 2020-01-25 12:57:10 +08:00
Gennadii Potapov
f12a30dcb4 Some proj/entitlements id changes 2020-01-12 15:47:13 +08:00
Mark Jerde
13ceb8d7d0 Add support for iCloud Sync. 2018-10-30 23:05:03 -05:00
Mark Jerde
7958af9110 Switch to my code signing and get CloudKit working on both iOS and macOS at the same time. 2018-10-22 22:47:25 -05:00
Gennadiy Potapov
82f018743c 1.8 version 2016-04-03 22:45:41 +08:00
David Personette
3dcda827a1 Target 10.7, Apple doesn't support 10.6; Enable App Sandbox; Fix warnings 2014-03-15 07:26:06 -04:00