>--------------------------------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 " "&quote&theUrl&quote 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.



- Richard Gaskin 
  Fourth World
  Multimedia Design and Development for Mac, Windows, UNIX, and the Web
  _____________________________________________________________________
  [EMAIL PROTECTED]                 http://www.FourthWorld.com
  US: 800-288-5825         Int'l: 323-225-3717        Fax: 323-225-0716

Reply via email to