• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort


  • Subject: Re: sort
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 23 Aug 2009 05:35:01 -0700


On Aug 23, 2009, at 4:21 AM, Shawn Brady wrote:

tell application "Finder"
set myFolder to "Macintosh HD:Users:Shawn:Pictures:TEST" as alias -- choose folder
set itemList to get every item of myFolder
set sortedList to sort itemList by modification date -- modification date, name, kind, comment
display dialog (item 1 of sortedList as string) & return & (item 2 of sortedList as string) & return & (item 3 of sortedList as string)
-- cant sort by size
end tell

Can sort by physical size.

-- Michelle

-- 
We are like tenant farmers chopping down the fence around our house for fuel when we should be using nature's inexhaustible sources of energy - sun, wind and tide. I'd put my money on the sun and solar energy. What a source of power! I hope we don't have to wait until oil and coal run out before we tackle that.
-- Thomas Alva Edison (1847-1931)

 _______________________________________________
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

References: 
 >sort (From: Shawn Brady <email@hidden>)

  • Prev by Date: Re: Sort Problem
  • Next by Date: Re: Sort Problem
  • Previous by thread: sort
  • Next by thread: InDesign/Photoshop: Deleting or Replacing Spot Colors Used in Images
  • Index(es):
    • Date
    • Thread