• 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: Q: Ensuring finder file selection list is in alphanumeric order?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Ensuring finder file selection list is in alphanumeric order?


  • Subject: Re: Q: Ensuring finder file selection list is in alphanumeric order?
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 17 Jan 2006 07:39:56 +0100


Le 17 janv. 2006, à 06:53, Marc Glasgow a écrit :

Q: How do I ensure that the returned file alias list of the current finder selection is always sorted alphanumerically, or force it to sort?

The short version:

set OurFileList to selection
-- result:
{document file "A13" of folder "XYZ" of disk "HD1"; document file "C12" of folder "XYZ" of disk "HD1"; document file "D14" of folder "XYZ" of disk "HD1"; document file "A10" of folder "XYZ" of disk "HD1"}
-- result I need:
{document file "A10" of folder "XYZ" of disk "HD1"; document file "A13" of folder "XYZ" of disk "HD1"; document file "C12" of folder "XYZ" of disk "HD1"; document file "D14" of folder "XYZ" of disk "HD1"}




You may coerce the pathnames as strings or Unicode texts then use a sort handler.

Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Q: Ensuring finder file selection list is in alphanumeric order? (From: Marc Glasgow <email@hidden>)

  • Prev by Date: Q: Ensuring finder file selection list is in alphanumeric order?
  • Next by Date: Re: Q: Ensuring finder file selection list is in alphanumeric order?
  • Previous by thread: Q: Ensuring finder file selection list is in alphanumeric order?
  • Next by thread: Re: Q: Ensuring finder file selection list is in alphanumeric order?
  • Index(es):
    • Date
    • Thread