Specific Applescript commands stopped executing in 10.9 Mavericks On Quit handler
All commands in the following Quit handler have been working well as part of a larger script/application in a 10.7 environment, but in 10.9 most (but not all) of the commands stopped working:
All required variables in the above handler are provided as globals. ALL commands work as expected when run from the Applescript Editor in 10.9. The script is then saved as a stay open application (due to an idle handler). Here's where it gets funky. When the application is run and and Quit is attempted, the first 2 commands in the TELL block execute, but all others commands before and after do not appear to execute and the application does not Quit. However, when the same application is run in 10.7 it works perfectly!
Note that the application is enabled for Accessibility in 10.9.
Setting the Gatekeeper to allow apps from "Anywhere" did not help
Any ideas what's causing the difference in 10.9 and how to fix it?