• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing a Variable to Another Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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".

I imagine Matt Neuberg has good examples in AppleScript: The Definitive Guide, 2nd Edition, but I don't feel like digging out my copy to look at the moment.

Ah, found it online.

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

References: 
 >Passing a Variable to Another Script (From: "Robert W. Young" <email@hidden>)

  • Prev by Date: Re: More Geek Speak
  • Next by Date: Re: More Geek Speak
  • Previous by thread: Passing a Variable to Another Script
  • Next by thread: Re: More Geek Speak
  • Index(es):
    • Date
    • Thread