Some more information:
My AppleScripts usually are very simple because the app does the heavy lifting. Think getting the accounts for Mail or the account type.
I have 2 places in the app where I use AppleScript. In the Setup the users determines which email she wants to archive from Mail. And then the user can archive the emails to a database. The Setup uses the AppleScripts in a thread. Archiving is threaded, too. But the AppleScripts are run on the main thread and before threading starts. The scripts run fine on the main thread. These are the same scripts which are used in the Setup!!!
I've moved the first AppleScript to osascript and now the second script hangs which is still using NSAppleScript.
The plan for today is to move more AppleScripts to osascript.
Topic:
Privacy & Security
SubTopic:
General
Tags: