Do shell script with applescript strings containing returns
Do shell script with applescript strings containing returns
- Subject: Do shell script with applescript strings containing returns
- From: Timothy Bates <email@hidden>
- Date: Mon, 15 May 2006 18:09:51 +0100
- Thread-topic: Do shell script with applescript strings containing returns
Hi there, i'm wanting to send an Applescript string to uniq (command line
command to remove duplicate lines)
Satimage give this as a working example, but it is now broken. Any clues on
how to use do shell script with piped strings as input?
Example:
set x to "Reagan
Bush
Clinton
Bush"
do shell script "echo " & x & "|tr '\\r' '\\n'|uniq"
End example
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden