At 00:20 +0100 2003.10.08, John Delacour wrote:
>Incidentally if you are using AppleScript/AE as the front end for
>Perl routines, which in my opinion is the best and fastest way to do
>things and demonstrably so, then Mac::Glue and all those things are
>quite redundant.

Yes, the problem is that "best" is subjective.  Some people think flying is
the best way to travel.  Some people think using Windows is the best way to
experience the Internet.  Some people think doing a magic show with tigers
is the best way to make a living.

Many people despise AppleScript, because ... well, it is a horrible
language to program in (where "horrible" is as subjective as "best," of
course).  That means, necessarily, it isn't best, for those people; and
therefore, it cannot be demonstrably better, unless it can do something the
compared method cannot, etc.

And that's rarely the case, but in those cases, well, AppleScript would
certainly be better.  For example, in many cases you can't "attach" a Perl
script.  You need to use a compiled OSA script.  In such a case,
AppleScript is certainly better than Perl, since Perl cannot perform that
function (although, in Mac OS X, some systems that formerly required OSA
scripts now accept shell scripts too, including Perl scripts).

However, I do agree that if you are using AppleScript or an AE/OSA-capable
language other than Perl to drive your system -- whatever it is -- then it
doesn't make much sense to do your AE stuff in Perl (unless the AppleScript
is just a wrapper to call the Perl script, such as in the case of the
aforementioned attaching problem).  Use the language you're already in.
It's just that many people want to not be in AppleScript in the first
place, let alone the second or third.


>My mileage doesn't vary on this issue, in case
>anyone fancies biting my head off :-)

Mine neither.  No biting.

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

Reply via email to