Re: file with most recent modification date
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