Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Sporadic crash when using executeAndReturnError -> UseTerminology
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sporadic crash when using executeAndReturnError -> UseTerminology



on 2005-08-17 7:05 AM, Jonathan del Strother at email@hidden
wrote:

>  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
http://www.quecheesoftware.com

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

References: 
 >Re: Sporadic crash when using executeAndReturnError -> UseTerminology (From: Jonathan del Strother <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.