• 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: Scripting Additions: Embracing the Horror of Unix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Additions: Embracing the Horror of Unix


  • Subject: Re: Scripting Additions: Embracing the Horror of Unix
  • From: garbanzito <email@hidden>
  • Date: Sat, 2 Feb 2002 20:36:43 -0700

at 2002 02 02, 13:18 +1100, they whom i call Timothy Bates wrote:
I would use grep, but I can't get it to not want a file as input.

as John Baxter mentions, you can use the echo command to
send force strings into the standard input. however, i think
AppleScript would benefit from a convenient way to send long
text to the standard input, which would avoid having to
use the "quoted form", which echo will require. (you could
push the text into a file, but it wouldn't be quite as clean...)

do shell script "some command -x" with standard input my_long_string

related question -- is there a limit to how long a string
quoted form can translate?

--
steve harley email@hidden


References: 
 >Re: Scripting Additions: Embracing the Horror of Unix (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: applescript-users digest, Vol 3 #102 - 14 msgs
  • Previous by thread: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by thread: Re: Scripting Additions: Embracing the Horror of Unix
  • Index(es):
    • Date
    • Thread