Richard Gaskin wrote:
> >--------------------------------3. open
> >browser--------------------------------
> >On Windows systems the path to the current browser is in the registry.
> >The proper way to find it is:
> >on show_url theUrl
> > if the platform is "MacOS" then
> > send theUrl to application "Finder" with "GURLGURL"
> > return the result
> > else
> > put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\") into typ
> > if typ="" then return "No browser found."
> > if last char of typ is numToChar(0) then delete last char of typ
> >
> > put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\"&typ\
> > &"\shell\open\command\") into cmd
> > if cmd="" then return "No browser open command found."
> > if last char of cmd is numToChar(0) then delete last char of cmd
> >
> > if "%1" is not in cmd then put " ""e&theUrl"e after cmd
> > else replace "%1" with theUrl in cmd
> >
> > open process cmd for neither
> > end if
> >end show_url
>
> Has this script been tested in Win95, 98, and NT with both MSIE and NN as
> the default browser?
>
> I've had mixed results from testing this on some NT boxes with NN as the
> default (sometimes reported to simply churn for a moment and then do
> nothing, no browser, no error message in the result), but if other people
> have shown this to work well then we can look deeper into resolving the
> issue.
>
I use a different registry key:
"hkey_local_machine\software\classes\http\shell\open\command\"
This has worked for me on a number of different NT machines with both NN and
MSIE. The only problem I have ever encountered is an intermittent crash of
MetaCard when trying to start the browser, but this happens rarely, and I have
not been able to reproduce it with any reliability, and it is probably being
caused by some weird interaction with some other part of my stack.
--
Marni Centor ([EMAIL PROTECTED])
Summit Systems, Inc.
22 Cortlandt Street
New York, NY 10007
(212) 896-3466
The views and opinions expressed in this email message are the sender�s own, and
do not necessarily represent the views and opinions of Summit Systems Inc.