>>What I'm looking to do is give the user a choice besides their default
 >>browser - they'd pass the full file path to the browser in question. I, in
 >>turn, would instruct that file/app to open $url.
 >>
 >>Ultimately, I'm looking to duplicate the following:
 >>
 >>    unless( fork ) { exec("/usr/local/mozilla/mozilla $url");
 >
 >However the MacOS version of your program will be in the form of a
 >"runtime" -- right? So the problem is how to get the creator string
 >('MOSS', 'MSIE' or whatever) into the program?

This, although usable for technically savvy people, wouldn't work for the 
program's audience. A larger portion of people know where programs are 
located on their hard drive. On a side note, though, does asking for the 
creator string allow me to somehow pass $url to the browser?

 >However that would not seem to me to offer much advantage over the
 >default Mac arrangement. It is after all very easy to change the
 >default browser type in InternetConfig by the 'Internet' Control
 >Panel. It strikes me it might be unlikely the user would choose a
 >different browser for your program than the one he or she regularly
 >uses? But maybe I've missed a point here.

Yeah, that's ultimately what I came down to. This feature request came up 
for a number of reasons, outlined below:

  a) Netscape on Win32 doesn't listen to the Win32::API
     call if it's NOT already open (if it's open and is
     the default browser, then it listens fine).

  b) There's no magical way to open the default browser
     on Linux with a few lines of code (taking into
     consideration how to find the default browser,
     how to find where the default browser is located,
     etc.)

  c) And finally, this is something I noticed on my own
     Mac (running OS X). In 9.1, iCab (non-carbon), IE 5,
     and Netscape all opened correctly (if they were
     the default browser). Now, on OS X, I have the
     carbonized version of iCab. iCab is set in my 9.1
     Internet Preferences as my default browser - but
     when MacPerl** opens the default browser (the
     carbonized iCab), it somehow doesn't get passed
     the $url, and iCab just sits at a blank screen).

     Long story short, I was hoping to allow the
     Internet Preferences to remain the same for
     9.1, but to override them in OS X so that I
     can get around the carbon/noncarbon thing
     concerning iCab.

     Yeah, I know, very rare case. But still. :)

** Yes, I know there's a 'nix Perl in OS X. Ignore that for now.


Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/

Reply via email to