Re: What's the story with OSAScriptController and OSAScriptView.
Re: What's the story with OSAScriptController and OSAScriptView.
- Subject: Re: What's the story with OSAScriptController and OSAScriptView.
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 08 Feb 2008 19:26:53 -0500
- Thread-topic: What's the story with OSAScriptController and OSAScriptView.
on 2008-02-08 5:35 PM, email@hidden at email@hidden
wrote:
> I presume you are referring to the OSAScript class.
> Do you know if it is thread safe, unlike NSAppleScript?
> This is where the lack of documentation really kicks in.
> Bucketloads of time can be wasted pursuing the unachievable.
>
> My app needs to run concurrent scripts.
> At present I am firing them off into separate tasks wrapped around
> NSAppleScript.
> If I could run each script via OSAScript in a separate thread it would
> be a big fast plus.
I've always understood that scripts must be run in the main thread, no
matter what. I've taken that for granted, and I haven't experimented to try
anything else. In fact, in my apps I force them to run in the main thread,
in order to avoid problems with users who have Unsanity's APE and haxies
installed.
On the other hand, I've heard lots of stories about how you can run scripts
in multiple threads. Some of these stories involve loading mulitple copies
of AppleScript, which doesn't seem like an attractive solution. But I know
that Mark Alldritt has scripts running concurrently and says its perfectly
feasible, and I think he knows what he's doing.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden