Launching standalones via a net-client.

Wilhelm Sanke sanke at hrz.uni-kassel.de
Thu Jul 22 22:23:56 EDT 2004


On Thu, 15 Jul 2004 Klaus Major <klaus at major-k.de> wrote:

> Hi Wilhelm,
>
> (snip)
> >> I have the feeling that it must be possible to access and launch the
> >> exe-file which is cached, but how?
> >> Please have a look at the changed part of the "updateme href" handler.
> >> Simply using "launch URL href" or "go URL href" does not work.
> >>
> >> Any ideas?
>
> I am not sure, but i would guess that EXE simply cannot be accessed
> with this technique
> which works for iamges and other files you can "use" inside of MC...
>
> I would put the "cached" EXE into a (temporary) binfile on disk and
> launch THAT file...
>
> ...
> 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!

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!

Wilhelm Sanke
http://www.sanke.org
 



More information about the metacard mailing list