• 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 data to a run handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Passing data to a run handler (From: John Rethorst <email@hidden>)

  • Prev by Date: Grabbing info from a webpage
  • Next by Date: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Previous by thread: Passing data to a run handler
  • Next by thread: Grabbing info from a webpage
  • Index(es):
    • Date
    • Thread