Re: Passing data to a run handler
Re: Passing data to a run handler
- Subject: Re: Passing data to a run handler
- From: Richard Morton <email@hidden>
- Date: Tue, 26 Jul 2005 15:54:15 +1000
On 26 Jul 2005, at 12:57 PM, John Rethorst wrote:
An application I use can send a run event to another application
and pass a parameter, in this case a URL. I'd like to direct this
run event to an applet, e.g.:
on run (theURL)
-- process theURL
end run
Matt Neuberg's book discusses passing a parameter to a script
object, but not to the parent script. Is that possible?
From Standard Additions:
run script: Run a specified script or script file
run script script -- the script text (or an alias or file reference
of a script file) to run
[with parameters a list of anything] -- list of parameters
[in plain text] -- the scripting component to use; default is the
current scripting component
Result: anything -- the result of running the script
-- calling script
run script alias "path:to:target:script" with parameters {param}
-- target script
on run {param}
doSomething(param)
end
Cheers,
Pram O Nition
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden