Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to call a perl script from an apple script

Hi All,


How to Call a perl Script from an apple script.🙂

Pls Give Your comments.


Thanx & Regards,

Esther

Posted on Nov 29, 2011 9:55 PM

Reply
2 replies

Nov 30, 2011 1:31 AM in response to RamyaEsther

Applescript to call a perl script named "/tmp/x.pl" passing an argument "world"

do shell script "/usr/bin/perl /tmp/x.pl world"

or if the script is given the executable atttribute (chmod +x /tmp/x.pl),

do shell script "/tmp/x.pl world"



Perl script "/tmp/x.pl" that prints a string using a passed argument

#!/usr/bin/perl

print "Hello $ARGV[$1]\n";

How to call a perl script from an apple script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.