I have the following Applescript XY.scpt which runs perfect from within the ScriptEditor. But after exporting it to an App (XY.app) it breaks with the message "System Events got an error: XY not allowed assistive access." (-1719)".
This is in Ventura 13.3 and the script XY is allowed for Accessibility and Automation in System Settings Security&Privacy.
set CR to ASCII character 13
set my0xC9 to ASCII character 201
tell application "Notes"
activate
set uiScript to "click menu item \"export as pdf" & my0xC9 & "\" of menu 1 of menu bar item \"File\" of menu bar 1 of application process \"Notes\""
run script "tell application \"System Events\" " & CR & uiScript & CR & " end tell"
end tell
Thanks for your help, ideas and input!
Where can I get the "stable code signing" certificate?
How you do this depends on your distribution strategy:
-
If this is something you’re creating yourself, you can use Xcode’s free provisioning support (aka Personal Team) to create an Apple Development signing identity that’ll work for this.
-
If you play to distribute this app widely, you’ll need to join a paid developer program and create a Developer ID Application signing identity.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"