----- Original Message -----
From: "jbv" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 1:59 PM
Subject: A few URGENT questions - Thanks


> Hi people,
>
> I have a few VERY URGENT questions - sorry for being so
> demanding...
>
> I am finishing an MC app (2.3.2) that will run on Mac & Win
> and will be distributed on a CD-ROM.
>
>
> QUESTION 1 :
>
> At the some point, the app will need to launch the default browser
> to open an HTML file located on one of the local volumes (CD-ROM
> or HD).
>
> On Windows, I can get the default browser by checking :
>
>     get queryRegistry("HKEY_CLASSES_ROOT\http\shell\open\command\")
>
>
> and on Mac, I can launch the defaut browser with the following line
:
>
>     send "http:" & "www.yahoo.com" to program "Finder" with
"GURLGURL"
>
>
> BUT how can I open the HTML file on a local volume ? In other words,
> how can I get the filepath of the browser app that has just been
> launched ?


Maybe it works differently on different versions of Windows, but on my
Win98 SE here's what I got.

When I did this in the msg box:
    put queryRegistry("HKEY_CLASSES_ROOT\http\shell\open\command\")

I got this (the app path + launch params) in return:
    "D:\OPERA\OPERA.EXE" /nowin /e

I found the 'user-friendly' app name with this:
    put
queryRegistry("HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application\"
)

It gave me this:
    Opera


FWIW.
Phil




Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to