• 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
sort with do Shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort with do Shell script


  • Subject: sort with do Shell script
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 4 May 2010 21:26:41 +0200

Hello

I'm running 10.4.11.
I have a list of 12019 items
for a total of 1,273,779 characters.

Is it normal that this handler 

on sortClean_nList(unsortedList)
set AppleScript's text item delimiters to (ASCII character 10)
set sortedList to paragraphs of (do shell script "echo " & quoted form of (unsortedList as string) & "| sort  -n -u")
set AppleScript's text item delimiters to ""
return sortedList
end sortClean_nList

fails returning :

La commande s'est arrétée avec un état non nul

The command stopped with a non-null status.

Thanks in advance.

Yvan KOENIG (VALLAURIS, France) mardi 4 mai 2010 21:26:21


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: sort with do Shell script
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Date question with weeknumber
  • Next by Date: Re: sort with do Shell script
  • Previous by thread: VideoEncoder/CommandLine/Programmer
  • Next by thread: Re: sort with do Shell script
  • Index(es):
    • Date
    • Thread