Re: NSAppleScript not in the main thread
Re: NSAppleScript not in the main thread
- Subject: Re: NSAppleScript not in the main thread
- From: Mike Abdullah <email@hidden>
- Date: Sun, 21 May 2006 16:25:35 +0100
Does that mean I could use NSAppleScript in a secondary thread if
that is the only thread it will ever be used in?
Mike.
On 20 May 2006, at 07:26AM, Nathan Day wrote:
NSAppleScript can only be used in the main thread because it shares
a AppleScript ComponentInstance, you need to create you own
ComponentInstance and that can not be done with NSAppleScript, you
can with my NDAppleScriptObject, which you can get at http://
homepage.mac.com/nathan_day/
On 20/05/2006, at 6:47 AM, Christoph Vogelbusch wrote:
Hi,
I just read in the "Multithreading Programing Topics" that
NSAppleScript should only be used from the main thread.
My "application" is running as a plug-in in iTunes and I want to
extend the song information using NSAppleScript.
As the plug-in is not running in the main thread I could never run
my AppleScript from the main thread and as NSAppleScript is slow I
want to create a separate thread for the AppleScript calls.
What kind of problems can I expect from running AppleScript from
another thread (and accessing the same application with it)?
How can I avoid these problems?
Greeting from Germany
Christoph Vogelbusch
_______________________________________________
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
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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