URL Scheme Handled by a Rev Application
Trevor DeVore
lists at mangomultimedia.com
Fri Jan 25 09:15:09 EST 2008
On Jan 24, 2008, at 11:23 PM, Andres Martinez wrote:
> Thanks Trevor,
>
> I will use relaunch when the application is running.
>
> And sorry but I still don't understand how to get the parameters
> passed to the application on the first launch.
Take a look at the "$" entry in the docs. Basically each command line
parameter passed to your application at launch is stored in $1, $2,
etc. So the repeat loop before starts at 1 and goes up to the number
of arguments passed in. As of 2.9 dp-3 (latest public beta) "$#"
returns the argument count.
Here are some additional comments on the repeat loop. Take a look at
the "value" entry in the docs as well.
repeat with i = 1 to $# -- "$#" is new in 2.9 dp-3
put value("$" & i) into theValue ## Get the value of $1, $2, etc.
(depending on value of i)
put theValue & cr after theFiles ## Store value in list of files
passed to the program
end repeat
Makes sense?
Regards,
--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
More information about the use-livecode
mailing list