• 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 "sort"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script "sort"?


  • Subject: do shell script "sort"?
  • From: Joseph Weaks <email@hidden>
  • Date: Thu, 22 May 2003 01:20:49 -0500

I have tried the variations I can think of to use the sort unix utility with the do shell script command. I'm guessing that it's not possible. It sure would be a handy to sort a string of lines on the fly. I'm new at all this unix stuff as it is. Any ideas?
Here's one version of the random gibberish I've tried:


set MyText to ("b" & (ASCII character 10) & "c" & (ASCII character 10) & "a" & (ASCII character 10) & (ASCII character 4))

set ShellCommand to "sort; echo " & MyText

set theResult to do shell script ShellCommand

Thanks,
Joe Weaks
_______________________________________________
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.

  • Follow-Ups:
    • Re: do shell script "sort"?
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: Repeat (From: Ben Waldie <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #1685 - 8 msgs
  • Next by Date: Re: do shell script "sort"?
  • Previous by thread: Re: Repeat
  • Next by thread: Re: do shell script "sort"?
  • Index(es):
    • Date
    • Thread