• 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: What's the story with OSAScriptController and OSAScriptView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: What's the story with OSAScriptController and OSAScriptView. (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Core Data: consequences of disabling the undoManager
  • Next by Date: Re: Rotating a QTCaptureView
  • Previous by thread: Re: What's the story with OSAScriptController and OSAScriptView.
  • Next by thread: Re: Re: What's the story with OSAScriptController and OSAScriptView.
  • Index(es):
    • Date
    • Thread