>On Wednesday, Oct 6 1999, Peter Reid wrote:
>
> > Hi
> >
> > I'm developing an app that launches a standard browser such as
> > Internet Explorer with particular potted web pages.  The app is
> > intended for both Mac and Win.  The question is - is there any way of
> > finding the location of the browser program on a given machine (Mac &
> > Win) so my app can work on any machine without neding to recode the
> > full path of the browser in each case?
>
>On Windows, try:
>
>put word 1 to -2 of
>queryRegistry("hkey_local_machine\software\classes\http\shell\open\
>command\") into gWebBrowserPath
>
>On the MacOS:
>
>send "http://www.whatever.com/" to program "Finder" with "GURLGURL"
>
>Regards,
>
>Kevin

Thanks for the help.  The Win tip does just what I want - it gives me 
the path of the local browser.  However, the Mac tip doesn't - it 
launches the browser with a URL.  As I want to use a mixture of real 
URL's and local copies of Web pages, I was hoping to do the same as 
the Win tip.  Is there any equivalent way of getting MacOS to give 
the path of the default browser?

Thanks again.

Regards,

Peter

--------------------------------------------------------
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)1509 264986
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

Reply via email to