URL Scheme Handled by a Rev Application

Andres Martinez andres at bakno.com
Fri Jan 25 09:20:11 EST 2008


Yes Trevor

Thanks a lot!

Regards,
Andres Martinez
www.baKno.com

On Jan 25, 2008, at 9:15 AM, Trevor DeVore wrote:

> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list