Re: AppleScriptability Meets NSOperation

2010-03-29 Thread Jerry Krinock
On 2010 Mar 29, at 14:30, has wrote: > The Apple Event Manager supports suspend and resume Great tip, has. I searched and found Cocoa Scripting Guide How Cocoa Applications Handle Apple Events Suspending and Resuming Apple Events and Script Commands In there, it looks like -s

Re: AppleScriptability Meets NSOperation

2010-03-29 Thread has
Jerry Krinock wrote: > I do some lengthy, multi-step tasks in an app like this: > > * Wrap each of their dozen or so steps in an NSOperation. > * Set dependencies so that they execute in sequence. > * Add them to a suspended NSOperationQueue. > * Un-suspend the queue. > > If an error occurs, all

AppleScriptability Meets NSOperation

2010-03-29 Thread Jerry Krinock
I do some lengthy, multi-step tasks in an app like this: * Wrap each of their dozen or so steps in an NSOperation. * Set dependencies so that they execute in sequence. * Add them to a suspended NSOperationQueue. * Un-suspend the queue. If an error occurs, all operations in the queue are cancelled