[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Passing variables between applescript and perl.



At 07.05 11/24/97, Carl Baltrunas & Cherie Marinelli 1.6v2 wrote:
>I have an application which can be passed AppleEvents and I have a set of
>example scripts written in AppleScript to send and receive transaction
>records from the application.
>
>What I want to be able to do is to read email messages from one of my
>mailboxes and parse them for the specified arguments needed for the final
>application and then send those arguments to either AppleScript to talk
>to the application, or talk to the application directly, then return to
>Perl the result of the AppleEvents or the result (a record) from the
>AppleScript.

I am assuming here that you are talking about an application other than
your mail application; i.e., this is something the mail snippet Paul gave
you can only partially work for?

>If this can be done without involving AppleScript, Great!  But I'm in need
>of a reference to an AE example in MacPerl that deals with records, or how
>to translate applescript AE commands into macPerl.

Yes, it can.  It is not the simplest of measures, though.  I have an
article coming out in The Perl Journal in mid-December that deals precisely
with this: creating and sending Apple Events, and how to figure out what it
should look like.

I am also in progress on a chapter for my book with Vicki Brown that will
deal just with Apple Events, AppleScript, and OSA (thought mostly with
Apple Events).

When that chapter is available, I will announce it.  The article, when
completed, is likely going to be posted online, though I recommend that you
subscribe to The Perl Journal anyway, as it is a great publication.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch