Passing arguments to an AppleScript?
Passing arguments to an AppleScript?
- Subject: Passing arguments to an AppleScript?
- From: Adam Knight <email@hidden>
- Date: Fri, 26 Sep 2003 12:30:12 -0500
So I've looked into NSAppleScript and have it working for a simple
script I need to use to control a second program (not mine). What I
really need is a way to set variables in the script based on
preferences in my own program.
There's a ton of documentation on how to make a program scriptable, but
I can't find much on actually using AppleScript within a program. At
this point I'm tempted to load the script from a text file, replace
some strings, then compile and run it. Seems hackish since AppleScript
supports arguments already (right?).
Of course, by posting I'll figure it out in a few minutes, but I'd
appreciate any pointers anyway. :)
--
Adam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.