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

Re: [MacPerl] Parameter passing A/Script



At 9.41 6/26/97, Cakebread wrote:
>Hello,
>  I am a fairly new MacPerl user, and would like to know if someone can tell
>me:
>
>How can you pass a parameter from MacPerl TO Applescript.  Clearly, I can use
>AS like a function and get a value BACK...but am unsure of the syntax to pass
>a parameter INTO AS.

How are you calling the AppleScript?  The simplest way is if the AS is
contained in your Perl script:

#!perl
$filename = q["text clipping"];
&MacPerl::DoAppleScript(<<EOS);
tell application "Finder"
        activate
        select file $filename
        open selection
end tell
EOS

--
Chris Nandor                 pudge@pobox.com                 http://pudge.net/
%PGPKey=('B76E72AD',[1024,'08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6'])



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