At 09:36 -0400 2001.04.11, Morbus Iff wrote:
> >* AppleScript, with path
> >
> > $path =~ s/"/\"/g;
> > $url =~ s/"/\"/g;
> > MacPerl::DoAppleScript(qq[tell application "$path" to GetURL "$url"]);
>
>This looks the most viable to me. As in the other message, overriding for
>the Mac user comes as a rare circumstance that only I've seen in real life.
>I'm assuming two things with the above example:
>
> a) The user needs AppleScript (no worries).
Yes.
> b) This can be compiled into a runtime no problem?
Yes. The big problems this one has is that you need to make sure you get
the $path and $url variables escaped properly, and it needs to be compiled
to AppleScript every time it is called. Neither is a big deal, but the one
with Mac::AppleEvents::Simple would probably be faster. The downside to
that one is that it requires an extra module, an updated Mac::Processes,
and more code.
And since the time to launch the app is probably longer than the time to
compile the AppleScript, the slowdown is not a big deal.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/