Re: Passing a Variable to Another Script
Re: Passing a Variable to Another Script
- Subject: Re: Passing a Variable to Another Script
- From: Christopher Stone <email@hidden>
- Date: Sat, 11 Feb 2012 20:57:33 -0600
On Feb 11, 2012, at 08:33, Robert W. Young wrote: How can I pass a variable to a script that I'm running from another script as per example below?
______________________________________________________________________
Hey Robert,
Look in the Applescript Language Guide and search for "run script" with the quotes. You'll see you can pass parameters. (Unfortunately there are not good examples there.)
Here also is a link to the relevant page in "Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X".
In general I prefer to use libraries of handlers, and Script Debugger makes this particularly easy.
I also tend to discourage people from using the 'result' variable, because it makes debugging much more difficult as scripts get bigger.
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden