Launching standalones via a net-client.

Klaus Major klaus at major-k.de
Fri Jul 23 11:47:28 EDT 2004


Hallo Willi :-),

>> ...
>> put url"http://www.xyz.com/folder/file.exe" into url("binfile:" &
>> someplace_on_disk)
>> open process someplace_on_disk for neither
>> ...
>> Not tested, but surely worth a try
>>
>> Regards and liebe Grüße
>>
>> Klaus Major
>
>
> Hi Klaus,
>
> a somewhat belated feedback after a week of family, school, and alumni 
> reunions and anniversaries.
>
> I changed the script of the "on updateme href" handler of the stack 
> script in my download stack according to your proposal and it works 
> perfectly, not even causing a noticeable delay for saving the 
> downloaded exe-file before launching it!

Very glad i could help :-)

And yes, saving cached urls is lightning fast, probably because they 
are in
memory and are just being "spitted out" to the hardisk :-D

> One could discuss the necessity of such a possibility to directly 
> start an application from a MC/Rev-Net-Client, but I could think of a 
> number of cases where this is indeed would be convenient.
>
> Here the last version of the relevant part of the script in the "on 
> updateme href" handler (assuming the net client displays a list of 
> both mc/rev and exe-files for selected web addresses):
>
> "if stat contains "cached" then
>     put "Done" into field "progress"
>     set the thumbpos of sb 1 to the endValue of sb 1
>     wait 500 milliseconds
>     close me
>     if word 1 of url href is "#!/bin/sh" then
>       go url href
>       #  else answer "URL" && href  && "is not a stack."
>     else
>        put the cachedURLs into Anwendung
>       set the itemdel to "/"
>       put last item of Anwendung into ExeDatei
>       put url href into url("binfile:" & Exedatei)
>       launch ExeDatei
>     end if
>     unload url href
>     exit to MetaCard
>   end if"
>
> Thanks very much!

Thank you for these lines :-)

> Wilhelm Sanke
> http://www.sanke.org

Best from hot germany

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the metacard mailing list