Re: Submitting Parameters
Re: Submitting Parameters
- Subject: Re: Submitting Parameters
- From: Steve Hayman <email@hidden>
- Date: Wed, 18 Apr 2007 15:42:48 -0400
osascript /Users/ronny/Documents/Scripts/GrowlFaxNotify.scptd
I want to submit a parameter which should be processed inside the
script.
"man osascript" shows how you can pass command line arguments (as of
Tiger.) You can pick them up in a run handler via the "argv"
parameter that people don't usually use - , e.g. you write this
on run argv
return "hello, " & item 1 of argv & "."
end run
and then you run it like this
$ osascript myScript.scptd steve
hello, steve.
How's that?
steve
_______________________________________________
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