Re: perl scripting in AppleScript
Re: perl scripting in AppleScript
- Subject: Re: perl scripting in AppleScript
- From: "John W. Baxter" <email@hidden>
- Date: Tue, 23 Dec 2003 11:10:39 -0800
- Envelope-to: email@hidden
On 12/22/2003 20:49, "John Fowler" <email@hidden> wrote:
>
I don't know whether I could build an applescript shell perl
>
interaction using sequential do shell scripts each with a -e switch
>
(the perl manual says sequential -e's can be used but I suspect this
>
does not apply to the applescript context where I imagine each do shell
>
script invokes a new -- shell? Just guessing here.
Multiple -e blah things work fine in do shell script:
do shell script "perl -e '$test = \"This is a test\";' -e 'print $test;'"
-->"This is a test"
(The final ; is optional, but why mess around? The earlier command-ending ;
is necessary just as in a file of Perl commands. It is even easier in the
-e -e -e context to leave off a ; than it is in a file, at least for me.)
--John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.