• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript's Threadedness…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >AppleScript's Threadedness… (From: Simon Forster <email@hidden>)

  • Prev by Date: iTunes - Wait for a Duplicate Operation to Complete??
  • Next by Date: Re: AppleScript's ThreadednessŠ
  • Previous by thread: AppleScript's Threadedness…
  • Next by thread: iTunes - Wait for a Duplicate Operation to Complete??
  • Index(es):
    • Date
    • Thread