• 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
Do shell script with applescript strings containing returns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Do shell script with applescript strings containing returns
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Compiling launches app
  • Next by Date: Re: Compiling launches app
  • Previous by thread: Re: Compiling launches app
  • Next by thread: Re: Do shell script with applescript strings containing returns
  • Index(es):
    • Date
    • Thread