Re: file with most recent modification date
Re: file with most recent modification date
- Subject: Re: file with most recent modification date
- From: John <email@hidden>
- Date: Tue, 26 Nov 2013 09:45:54 -0500
Hi Shane,
This is what I use to recursively sort files...
set folderPath to POSIX path of (choose folder)
set latestFiles to paragraphs of (do shell script "find " & quoted form of folderPath & " -type f -flags nohidden \\! -name \".*\" -exec stat -f \"%Sm - %N\" -t \"%Y-%m-%d %H:%M:%S\" {} + | sort -r ;")
I wrote this script to reveal the latest file in the frontmost Finder window. Map it to a keystroke or create a service for quick access.
https://dl.dropboxusercontent.com/u/2422542/Reveal_Recent.zip
John Day