• 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: NSAppleScript not in the main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript not in the main thread


  • Subject: Re: NSAppleScript not in the main thread
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 19 May 2006 15:21:43 -0600


On May 19, 2006, at 2:47 PM, Christoph Vogelbusch wrote:

What kind of problems can I expect from running AppleScript from another thread (and accessing the same application with it)?

Crashes.

How can I avoid these problems?

You can try playing Russian Roulette with it if you'd like, but the documentation change was made after a number of people in this group complained that NSAppleScript was crashing while compiling/running their script in a thread other than the main thread. For example: <http://www.cocoabuilder.com/archive/message/cocoa/2004/8/18/114896>


The only 100% safe way to run the class is in the main thread.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSAppleScript not in the main thread (From: Christoph Vogelbusch <email@hidden>)

  • Prev by Date: Re: KVO: programmatically created custom views not getting initial value notifications
  • Next by Date: Re: Trouble using ANY operator in an NSArrayController search predicate
  • Previous by thread: Re: NSAppleScript not in the main thread
  • Next by thread: Re: NSAppleScript not in the main thread
  • Index(es):
    • Date
    • Thread