opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 17 January 2006 • 7:42PM -0500

Q: Ensuring file selection list is in alpha order?
by Marc Glasgow

REPLY TO AUTHOR
 
REPLY TO GROUP




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      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.