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

[MacPerl] running perl script via Applescript



I'm sure this is going to be straightforward, but it is eluding me.

I'd like to execute a perl script from [another application via] applescript.

In applescript pseudocode, something like

tell application "MacPerl"
set r to Run Script "validate.pl"
return r
end tell

What would be the right code?

Do I have to save the perl script as droplet or runtime version or anything first?

How do I get the perl script to return a string that applescript will get into the return result ('r' above)? Does 'print "my result";' work?

How do I pass data to 'validate.pl' (via 'stdin')?


_______
Will Neuhauser willn@quando.com
Quando, Inc. Tel: 1 (503) 225-1988
520 NW Davis Street Fax: 1 (503) 225-1987
Portland, OR 97209 USA http://www.quando.com "When you need to know when"


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