Re: NSAppleScript with threading
Re: NSAppleScript with threading
- Subject: Re: NSAppleScript with threading
- From: email@hidden
- Date: Sun, 8 May 2005 16:44:59 -0400 (EDT)
- Importance: Normal
> Hello,
>
> I read from the NSAppleScript documentation :
> Important: You should access NSAppleScript only from the main thread.
>
> So how can I execute AppleScript scripts using NSAppleScript keeping
> my GUI responsive to user interactions ??
You're not going to like this, but it isn't possible. About the only thing
I can think of would be to execute the 'osascript' task.
Fortunately, the BSD Subsystem is no longer an optional install in Tiger,
so you can depend on your users having osascript installed if they're
running 10.4 or higher. If your app is compatible with 10.3 or lower,
though, you'll have to check for its existence, and alert the user if it's
not found.
Charles
_______________________________________________
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