Re: Sort folder list descending
Re: Sort folder list descending
- Subject: Re: Sort folder list descending
- From: Luther Fuller <email@hidden>
- Date: Thu, 25 Mar 2010 15:33:22 -0500
On Mar 25, 2010, at 3:07 PM, Alex Zavatone wrote: Man, the AppleScript documentation is thick.
I'm able to easily sort a list of folders but can't get the syntax to sort it in descending order. Anyone?
tell application "Finder" set myItems to (sort myItems by modification date)
Doing a reverse on the list after I get it doesn't appear to do anything. : /
I happen to have a script that does exactly that. In two lines ...
get sort (get folders of sourceFolder) by modification date set folderList to (reverse of the result) as alias list
And I've never noticed any problem with it.
|
_______________________________________________
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