Double-Clicking a file

Ken Ray kray at sonsothunder.com
Mon Dec 31 12:58:00 EST 2001


You retrieve the environment variable $0. So if your Rev doc is
double-clicked and opens a Rev executable, you can (in the executable) say:

on preOpenStack
  if $0 is not empty then
    open stack $0
  end if
end preOpenStack

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Dan Friedman" <dan at clearvisiontech.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, December 31, 2001 10:14 AM
Subject: Double-Clicking a file


> Greetings again,
>
> On the Mac, I can obtain information from the Finder to see what file the
> user double clicked so that I can open that file in my standalone (using
the
> creator/file code).  However, how does one do this in Windows?
>
> If my installer modifies the registry so that ".huh" files are opened with
> my application, and the user double clicks a ".huh" files, how do I trap
the
> incoming event from Windows?
>
> As always, thank you in advance for your time,
>
> Dan Friedman
> ClearVision Technologies, Inc.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the Use-livecode mailing list