At 11:02 -0500 01.31.2001, Morbus Iff wrote:
>What I need to do is open the default browser with a URL on the Mac.
>Do I use AppleEvents? Can anyone give me some sample code?

If you have the Mac::InternetConfig that comes with cpan-mac:

        use Mac::InternetConfig;
        GetURL('http://macperl.sourceforge.net/');

Which is just a shortcut for:

        use Mac::InternetConfig qw(:DEFAULT $ICInstance);
        ICGeneralFindConfigFile($ICInstance);
        ICLaunchURL($ICInstance, 0, 'http://macperl.sourceforge.net/');

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to