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

Re: [MacPerl] Getting a value back from AppleScript



At 5:30 PM +0200 7/19/00, Philippe de Rochambeau wrote:
>Is there any way to make AppleScript return a value and hand it to
>MacPerl. For example:
>
>MacPerl::DoAppleScript(<<END_SCRIPT);
>       return 3 + 4
>       END_SCRIPT
>
>
>I would like to retrieve the result (3 + 4) and store it in a Perl
>variable.

$result = MacPerl::DoAppleScript(<<END_SCRIPT);
       return 3 + 4
END_SCRIPT
print "$result\n";

7


>
>Many thanks.
>
>Philippe de Rochambeau
>
-- 
--
Paul Schinder
schinder@pobox.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org