on 3/11/02 4:15 PM, [EMAIL PROTECTED] purportedly said:

> Just a quick question/survey. I'm taking over an system written mostly in
> AppleScript and some MacPerl. Is it worth sticking with the AppleScript or
> should I port it over to MacPerl. I suppose the answer will be obvious
> considering the list I'm spamming but I thought it might be interesting to
> hear some opions about the topic.

On top of what Chris Nandor said, if these scripts are AppleEvent heavy
(i.e., using tell statements for more than just launching programs), you can
make a Perl script which is much slower, especially if you use the
MacPerl::DoAppleScript function. If you are up to some kind of a learning
curve, you can get around this using certain AppleEvent related modules.

However, I would also add that if these scripts are intended to be used for
quite some time, especially in an environment with mixed Mac OS versions,
you may be better off in the long run to port them to Perl. Perl would be
more powerful, flexible, and easier to improve, with a greater scope of what
could be accomplished compared to vanilla AS. Sometimes I think it is worth
it to re-write something that works perfectly fine and where no short term
benefits would be realized if there are long term benefits to be reaped.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Reply via email to