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

Q: Ensuring file selection list is in alpha order?


  • Subject: Q: Ensuring file selection list is in alpha order?
  • From: Marc Glasgow <email@hidden>
  • Date: Tue, 17 Jan 2006 06:42:59 -0500

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?
It seems to be unaffected by selection order in the finder and display order.


The short version (OS 10.4.4):

tell Finder
 set OurFileList to selection
end tell

-- 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 for my purposes:
{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"}

Any insight appreciated.

Cheers
=-= Marc Glasgow
_______________________________________________
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


  • Prev by Date: Re: AppleScript applications and Intel Macs
  • Next by Date: Apologies -- sorry for the multiple posts
  • Previous by thread: Q: Ensuring file selection list is in alpha order?
  • Next by thread: Q: Ensuring finder file selection list is in alphanumeric order?
  • Index(es):
    • Date
    • Thread