Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > On 17 Dec 2014, at 12:24, Brian Christmas wrote: > > For stopping a vanilla applescript from running, press Command-. ( that’s > Command - full stop) Hi Bria To my surprise, it turns out that that's a system wide keychord that my own editor app can also utilise, and not just a shortcut r

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> > 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_Architec

Re: OSAScriptController's stopScript action

2014-12-17 Thread sqwarqDev
> On 17 Dec 2014, at 19:07, Jonathan Mitchell wrote: > > Can you show us how you launch the script. > The script is just in a bog standard NSTextView, with a bit of tinkering to the text attributes, and then it's simply a call to OSAScript: NSString *source = [textView string]; NS

Re: OSAScriptController's stopScript action

2014-12-17 Thread Jonathan Mitchell
Can you show us how you launch the script. > On 17 Dec 2014, at 05:09, sqwarqDev <2551p...@gmail.com> wrote: > > Once again, apologies for cross posting, but again this is partly an > AppleScript question and partly a Cocoa question. To wit: > > Is there any way to programmatically stop a scri

OSAScriptController's stopScript action

2014-12-16 Thread sqwarqDev
Once again, apologies for cross posting, but again this is partly an AppleScript question and partly a Cocoa question. To wit: Is there any way to programmatically stop a script once it's running without using OSAScriptController's 'stopScript' IBAction? My attempts to bend OSAScriptController