• 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: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)


  • Subject: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
  • From: jif <email@hidden>
  • Date: Tue, 18 Apr 2017 10:57:40 +0100


On 18 Apr 2017, at 10:42, email@hidden wrote:

Re: Sorting characters of the text - script doesn't work as
     expected (Yvan KOENIG)

It doesn't work to write something like this ?

use framework "Foundation"

on sort(textList)
((current application's NSArray's arrayWithArray:textList)'s ¬
sortedArrayUsingSelector:"compare:") as list
end sort


sort({"Καλλισθένης", "Ἐπίκουρος", "Δημοσθένης", "Αἴσωπος"})

--> {"Αἴσωπος", "Δημοσθένης", "Ἐπίκουρος", "Καλλισθένης"}

 _______________________________________________
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: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Sorting characters of the text - script doesn't work as expected
  • Next by Date: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
  • Previous by thread: Re: Applescript & RTF & TextEdit...
  • Next by thread: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
  • Index(es):
    • Date
    • Thread