• 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: Yvan KOENIG <email@hidden>
  • Date: Tue, 18 Apr 2017 12:01:18 +0200


Le 18 avr. 2017 à 11:57, jif <email@hidden> a écrit :


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({"Καλλισθένης", "Ἐπίκουρος", "Δημοσθένης", "Αἴσωπος"})

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



The asker carefully wrote that as it run under Lion he can't take benefit of ASObjC.


Yvan KOENIG running Sierra 10.12.4 in French (VALLAURIS, France) mardi 18 avril 2017 12:01:13




 _______________________________________________
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

References: 
 >Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG) (From: jif <email@hidden>)

  • Prev by Date: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
  • Next by Date: Re: Applescript & RTF & TextEdit...
  • Previous by thread: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
  • Next by thread: Re: Google Chrome Appears to be Preparing to Disallow JavaScript injection via Applescript
  • Index(es):
    • Date
    • Thread