Re: file with most recent modification date
Re: file with most recent modification date
- Subject: Re: file with most recent modification date
- From: Shane Stanley <email@hidden>
- Date: Tue, 26 Nov 2013 23:01:36 +1100
On 26 Nov 2013, at 10:58 PM, koenig.yvan <email@hidden> wrote:
> Also, this and the more AppleScript-y versions mentioned all suffer from the same problem: they find the most recently modified *item*, which may not be a file. Correcting this in the Finder version merely requires changing "item" to "file". Correcting this in the shell version is less obvious; here's one way:
>
> set k to paragraph 1 of (do shell script "ls -Ft " & quoted form of d & " | grep -v '/$')
But that fails to distinguish between packages and folders. So it will miss all your Pages files, for example.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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