Re: Running AppleScripts from an App using NSAppleScript

2015-04-28 Thread has
Dave wrote: > I have a number of AppleScripts I’d want to run from my App. Each Script has a couple of parameters [...] Example code here: http://appscript.sourceforge.net/nsapplescript.html The downside (one of them anyway) is that you have to do all of the Cocoa<->AE packing and unpac

Re: Running AppleScripts from an App using NSAppleScript

2015-04-27 Thread Jens Alfke
> On Apr 27, 2015, at 6:52 AM, Dave wrote: > > At the moment, I setup the Text for the Script, Compile it and then Run it > each time. I’m wondering if there is anyway to be able to just compile the > Script once, and then pass the Parameters to the Script as it seems a bit > time-consuming t

Running AppleScripts from an App using NSAppleScript

2015-04-27 Thread Dave
Hi All, I have a number of AppleScripts I’d want to run from my App. Each Script has a couple of parameters, here is an example: on run set myParam1 to set myParam2 to set myStatus to doStuff(myParam1, myParam2) return myStatus end run — — Do something with