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

Re: [MacPerl] using &MacPerl'DoAppleScript



At 5.41 97/2/18, Rudolf Hommer wrote:
>I want to call a apple script out of perl:
[...]
>and I want to use the data out of the script within perl.
>
>I tried:
>print result;
>print $result;
>print $_;
>
>and nothing works!


Try:

#!perl
$x = &MacPerl'DoAppleScript(<<'END_SCRIPT');
tell application "FileMaker Pro"
        get record 1 of layout 0
end tell
END_SCRIPT

print $x;


Good luck,

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6