• 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: file with most recent modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file with most recent modification date


  • Subject: Re: file with most recent modification date
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 25 Nov 2013 10:33:57 -0600

On Nov 25, 2013, at 10:05 AM, Robert Poland wrote:

This should be simple, but…
Don’t see anything in the Finder dictionary that applies.

tell application "Finder"
open the folder "Macintosh HD:Users:rpoland:Pictures:APOD ƒ"
set theFile to the name of the file whose properties contain the most recent modification date
end

try this handler …

on getMostRecent(folderAlias)
tell application "Finder" to (sort (every item of folderAlias) by modification date)
return item 1 of the result as alias
end getMostRecent -----------------



 _______________________________________________
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: file with most recent modification date
      • From: Robert Poland <email@hidden>
References: 
 >file with most recent modification date (From: Robert Poland <email@hidden>)

  • Prev by Date: file with most recent modification date
  • Next by Date: AS Terminology & Apple Event Codes
  • Previous by thread: file with most recent modification date
  • Next by thread: Re: file with most recent modification date
  • Index(es):
    • Date
    • Thread