Re: AppleScript / Perl comparison
Re: AppleScript / Perl comparison
- Subject: Re: AppleScript / Perl comparison
- From: has <email@hidden>
- Date: Tue, 25 May 2004 10:21:20 +0100
Chris Nebel wrote:
> I just hope that someday we'll be able to call Perl from within AS
> without the delay that 'do shell script' currently introduces.
(Chris?)
Technically possible. Some enterprising soul should go read TN1164
(which now has the sample code in it, by the way) and perlembed(1).
Funny enough, the thought crossed my mind while writing Perl
components to some of my AS libraries [1] that at least some of the
AS language's performance/feature shortcomings could be significantly
eased by embedding a Perl interpreter in the AS engine, thus making
it relatively straightforward to implement AS library functions as
reasonably efficient wrappers around Perl code.
This was a great many moons ago, mind you. I've had a lot better
ideas since then, and aren't interested in pursuing the Perl thing
myself given I rarely use AS now. As a quick-n-dirty "fix" for the
benefit of existing AS users an osax-based AS-to-Perl bridge could
still be worth a shot though. I'd suggest anyone considering it check
out the work by Chris Nandor et-al on Mac::AppleEvents and Mac::Glue
for potential bridge-building materiel:
<
http://search.cpan.org/~cnandor/>; lots of juicy stuff for
converting between Apple event and Perl types, for example.
HTH
has
[1] see the AppleMods library archive <
http://applemods.sourceforge.net>
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.