• 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: OSAScriptController's stopScript action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSAScriptController's stopScript action


  • Subject: Re: OSAScriptController's stopScript action
  • From: sqwarqDev <email@hidden>
  • Date: Wed, 17 Dec 2014 22:30:40 +0700

> > 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 (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


  • Follow-Ups:
    • Re: OSAScriptController's stopScript action
      • From: sqwarqDev <email@hidden>
  • Prev by Date: Re: Added Toolbar, now main window can't be resized
  • Next by Date: Re: OSAScriptController's stopScript action
  • Previous by thread: Re: OSAScriptController's stopScript action
  • Next by thread: Re: OSAScriptController's stopScript action
  • Index(es):
    • Date
    • Thread