• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: perl scripting in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: perl scripting in AppleScript (From: John Fowler <email@hidden>)

  • Prev by Date: UI Element Example
  • Next by Date: Re: Keystroke problems
  • Previous by thread: Re: perl scripting in AppleScript
  • Next by thread: Re: perl scripting in AppleScript
  • Index(es):
    • Date
    • Thread