Good day, all. Currently, in a script of mine, I use the following code to
launch the default browser on the users' machine to a specific URL:

   use Mac::InternetConfig qw(:DEFAULT $ICInstance);
   ICGeneralFindConfigFile($ICInstance);
   ICLaunchURL($ICInstance, 0, $url);

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.

Is this possible? I had looked into exec and system and they didn't seem to
provide what I needed (if I'm wrong, let me know). I saw mention of
Mac::Processes::LaunchApplication, but couldn't get it to work and then
read on that it doesn't pass command line parameters.

Can I do this with some sort of Glue function? Can someone give me a demo?

Ultimately, I'm looking to duplicate the following:

   unless( fork ) { exec("/usr/local/mozilla/mozilla $url");

Thanks!

-- 
      ICQ: 2927491      /      AOL: akaMorbus
   Yahoo: morbus_iff    /  Jabber: [EMAIL PROTECTED]
   [EMAIL PROTECTED]   /   http://www.disobey.com/

Reply via email to