Re: file with most recent modification date
Re: file with most recent modification date
- Subject: Re: file with most recent modification date
- From: "koenig.yvan" <email@hidden>
- Date: Tue, 26 Nov 2013 13:10:47 +0100
Le 26/11/2013 à 13:01, Shane Stanley <email@hidden> a écrit :
> 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
True with iPlay'13 which create packages, wrong with iWork '09 whose default format is flatfiles.
Wonder why I prefer iWork ;-)
Yvan KOENIG (VALLAURIS, France) mardi 26 novembre 2013 13:10:10
_______________________________________________
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