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

Re: sort with do Shell script


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


Le 4 mai 2010 à 21:26, Yvan KOENIG a écrit :

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.



I tried with half the list (6135 items) and got the same error.

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


 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >sort with do Shell script (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: sort with do Shell script
  • Next by Date: Re: sort with do Shell script
  • Previous by thread: sort with do Shell script
  • Next by thread: Re: sort with do Shell script
  • Index(es):
    • Date
    • Thread