• 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 don't return what I wait
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort don't return what I wait


  • Subject: Re: Sort don't return what I wait
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 16 Jun 2008 19:32:39 +0200


Le 16 juin 2008 à 19:24, Mark J. Reed a écrit :

Note that sort(1) is sensitive to locale settings, specifically
LC_COLLATE; it obeys whatever sort order is specified in the named
locale's definition, which for instance allows it to properly deal
with alphabets that have digraphs.  So if you want to be sure to sort
things Frenchly, you can use

do shell script "echo " & quoted form of tt & " | LC_COLLATE=fr_FR sort"

Besides -f, you may also wish to investigate the -d option, which
ignores everything except letters when doing the comparison and
thereby gets a more traditional result.

There have also been list-sorting handlers posted here that do the job
without the shell, usually relying on Applescript's relational
operators to determine the collation order.


Thanks

In fact, I'm writing a script for a Pages user which want to concatenate more than 400 Pages documents in a single one.
My guess is that its docs are of the kind "myDoc001.pages"
…
"myDoc401.pages"


I just met the problem during my tests done with some available documents.

Yvan KOENIG (from FRANCE lundi 16 juin 2008 19:30:49)


_______________________________________________ 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 don't return what I wait
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Sort don't return what I wait (From: KOENIG Yvan <email@hidden>)
 >Re: Sort don't return what I wait (From: KOENIG Yvan <email@hidden>)
 >Re: Sort don't return what I wait (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Get name of desktop image. Is this a bug?
  • Next by Date: Re: Sort don't return what I wait
  • Previous by thread: Re: Sort don't return what I wait
  • Next by thread: Re: Sort don't return what I wait
  • Index(es):
    • Date
    • Thread