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

[MacPerl] Passing variables between applescript and perl.



Hi everyone,

   As recently asked on the list, and answered, the solution to passing
   a value back from AppleScript is fairly simple...

     $value = MacPerl::DoAppleScript($function_string);

  My question might be as simple... but I'm not sure.  Paul Schinder's
  response about using MacPerl for all of it, I'd agree with, for the posed
  question, and if that would work in my case, I'll prefer that since I'll
  be much happier coding in Perl than in AppleScript.

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.

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.

Thanks in advance.

-Carl

Carl A Baltrunas <carl@reststop.com> and Cherie Marinelli <2bunnies@1unique.com>
Catalyst Industries: The One-Stop Internet registration and distribution service
URL: <http://www.reststop.com>    INFO: info@1unique.com
-owned by EWBR & EWBR-ette [our house bunnies] and Czazu [our dog]
 Visit them at their hotel at http://www.reststop.com/info/bunny/bunnycam.html



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