> On Apr 27, 2015, at 6:52 AM, Dave <d...@looktowindward.com> 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 to recompile each time when 99% of the Script is constant.

Define an event handler (“on …”) in the script and get the parameters out of 
it. Then call the script via -executeAppleEvent: passing it an AE descriptor 
containing the parameter values.

—Jens
_______________________________________________

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

Reply via email to