I am trying to build a macOS application that invokes NSAppleScript that controls Safari, but in order to do so, I need the NSAppleEventsUsageDescription entitlement set. However, this entitlement requires, from my understanding, a paid developer account for the signing certificate (free provisioned certificates don't appear to be able to work). I only want to be able to run this application locally for personal use.
Here are some less than ideal options I've considered:
- Invoking NSUserAppleScriptTask instead and creating custom script files
- Running the generated application binary directly from Terminal which supports these entitlements
- Using SafariServices (however when I tried doing so, functions like getAllWindows would not seem to fire but this is a separate issue)
- Code signing with a self generated local root certificate (this did not work)
- Buying into the paid developer programme (I'd rather not)
Are there any other options?
I am on macOS Monterey 12.4 and using Xcode 13.4.1.