Re: Scripting Additions: Embracing the Horror of Unix
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