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

Re: [MacPerl] Passing values between AppleScript and MacPerl



>$x=5;
>$y=6;
>$aNumber = MacPerl::DoAppleScript(<<EOS);
>display dialog "Enter $x + $y" default answer ""
>get text returned of result as number
>EOS

Thank you Jefferson and Chris

That clears it up. I didn't realise I could simply drop Perl variables 
directly into an embedded AppleScript. I thought a more complicated route 
was required--that's why I tried calling an AppleScript, calling a 
MacPerl script.

My brain hurts!
SeanC
                     Mediatek Training Institute
   1st Floor Media Park, 129 Moore Road, Berea, Durban, South Africa
   phone: +27 (0)31 305 4200              SeanC@mediatek.co.za
   fax: +27 (0)31 305 4236                SeanC@dmax.co.za


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