--- Chris Nandor wrote:
The script needs to return a value via MacPerl::Reply($value).  There are
other ways, but this is the easiest.
--- end of quote ---

Chris,

Thanks for your help. I am now returning the value, but I don't know how to pass
it to the next MacPerl script. I call the first script like this:


tell application "MacPerl"
        set newPath to Do Script "Pathology:Applications:Cron
Software:ProcessPCImages1.pl"
end tell

Then inside the above script, I return the value of the $path variable, like
this...

MacPerl::Reply($path);


Then when I call the next Perl program, I want to pass the newPath variable to
it. This is where I am having the problem. How do I pass that variable to
MacPerl? I tried this:

tell application "MacPerl"
        Do Script {"Pathology:Applications:Cron Software:ProcessPCImages2.pl",
"newPath"}
end tell

Then inside the script, I have:

$path = @ARGV[0];

But this doesn't work. How do I do the passing in AppleScript and the receiving
in MacPerl?

Thanks,
Kathy


Reply via email to