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

Re: [MacPerl] AppleScript to Perl?



Hello,

on 10/9/00 8:10 AM, Levan, Jerry at Jerry.Levan@eku.edu wrote:

> I used a FaceSpan application to "collect" via a GUI all of
> the information that a MacPerl droplet might need, then start
> the MacPerl droplet and *somehow* pass all of the collected
> info to the MacPerl object...probably as an array of strings...

You can.  The Do Script command will take a list.  If you give the path to
the script/droplet as the first parameter, the remaining parameters will
appear to your script in @ARGV (ie, in the example below $ARGV[0] is "text
one" and $ARGV[1] is "text two".


set param1 to "text one"
set param2 to "text two"
set s to "HD:path to:script.plx"
tell application "MacPerl"
    Do Script {s, param1, param2}
end tell


-- 
Enrique Terrazas, MD, MS
<mailto:terrazas@labmed.ucsf.edu>
<http://labmed.ucsf.edu/~terrazas/>


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