on 2005-08-17 7:05 AM, Jonathan del Strother at email@hidden
> I'm performing the applescript in a secondary thread, because otherwise it
> brings my program to a screeching halt while the applescript is running. Is
> there anything I can do to make it work ok outside of the main thread?
There are some who claim it is possible to run AppleScripts in a secondary
thread, but the official line from Apple has always been that they must be
run on the main thread. It isn't just a matter of AppleScript not being
thread safe, but something more fundamental.
So, theoretically, you can always avoid the APE/haxie issue by making sure
your scripts run on the main thread. If you find some way to run scripts
successfully on a secondary thread, I believe you will also have to tell
your users not to install APE or any haxies.
I had a long correspondence with Rosyna Keller of Unsanity about this
several months ago. Perhaps they have done something different since then to
ameliorate this issue.
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden