• 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: Sort folder list descending
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Sort folder list descending
      • From: Alex Zavatone <email@hidden>
References: 
 >Sort folder list descending (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Sort folder list descending
  • Next by Date: Re: coerce record to string - does this work in other System languages?
  • Previous by thread: Re: Sort folder list descending
  • Next by thread: Re: Sort folder list descending
  • Index(es):
    • Date
    • Thread