Hmmm - I don’t see how to post AppleScript, so I’ll just describe the issue:
Editing and saving my script as an .app in Script Debugger, it controls a Numbers document fine when run from Script Debugger.
However, when double-clicking the .app file in the Finder, Script Debugger hangs and the top of the source code window is yellow and says “Tell Application …” but no error message. The line highlighted is the first line of executable code. In the Log there is something about a (current date) generating a security error. And the script does not execute (hangs on first line of code).
Now, if I copy the whole script and paste into Script Editor, compile as .app, and save it, it all runs fine, from the Editor, and from the .app in the Finder, and controls the Numbers document as expected.
I want this script to run from a launchd plist, and I have some more things to add, so I’d like to edit it in Script Debugger.
Anyone know why the .app hangs when compiled and saved as .app from SD, but the exact same code runs fine when compiled and saved as .app from Script Editor?