At 12:12 -0400 2002.05.28, Katherine Richmond wrote:
>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?
Try [] instead of {} brackets. I am not sure if it makes a difference, but
it might. Also do $path = $ARGV[0], not @ARGV[0]. There might be
something else I am missing, but that should work.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/