Closed jcreedcmu closed 6 months ago
When I put ExitToShell();
before the return noErr;
and run the script
on run
tell application "TESample"
quit
end tell
end run
in ScriptEditor
, then indeed TESample
closes, but then ScriptEditor
beachballs forever. I imagine I'm somehow supposed to communicate back to the apple event sender that I've successfully handled the event.
Returning noErr
and just setting a global that lets us fall out of the event loop suffices.
At least Quit