> > Is there any way to programmatically stop a script once it's running > > without using OSAScriptController's 'stopScript' IBAction? > > See OSASetActiveProc() in the Retired Documents library: > > https://developer.apple.com/legacy/library/documentation/Carbon/Reference/Open_Scripti_Architecture/index.html#//apple_ref/c/func/OSASetActiveProc >
Ah, perfect! If you were a girl, I'd kiss you. > As to OSAScriptView and OSAScriptController, I've not used them myself but I > remember Shane telling me a while back that they were also crap and had ended > up writing his own classes from scratch. Yep, he told me the same thing, which was going to be my answer if anyone said "Why don't you just use an OSAScriptView?" Thanks again for the tip and background explanations. Best Phil _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com