Re: AppleScript's Threadedness…
Re: AppleScript's Threadedness…
- Subject: Re: AppleScript's Threadedness…
- From: Christopher Nebel <email@hidden>
- Date: Wed, 19 Nov 2008 13:05:26 -0800
On Nov 19, 2008, at 2:54 AM, Simon Forster wrote:
I've got a main AppleScript script which can be called by any number
of scripts - potentially simultaneously. In the main AppleScript I
plan to have a lightweight run handler which will add the incoming
request to a queue while other bits of the script may be tied up
elsewhere. Will this work or is AppleScript strictly a one-task-at-a-
time affair?
It's currently not safe to use AppleScript anywhere other than the
main thread. It's possible to execute another script in the middle of
another one, but the outer script is then blocked until the inner one
finishes.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden