Re: file with most recent modification date
Re: file with most recent modification date
- Subject: Re: file with most recent modification date
- From: Robert Poland <email@hidden>
- Date: Mon, 25 Nov 2013 16:01:06 -0700
Thanks Luther,
That operation is broken in Mavericks, yields the oldest file.. I have turned in a BUG report.
Turns out I won’t need it anyway.
On Nov 25, 2013, at 9:33 AM, Luther Fuller <email@hidden> wrote:
> 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 -----------------
Robert Poland - Fort Collins, CO
_______________________________________________
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