• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: file with most recent modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: file with most recent modification date
      • From: Shane Stanley <email@hidden>
References: 
 >file with most recent modification date (From: Robert Poland <email@hidden>)
 >Re: file with most recent modification date (From: Luther Fuller <email@hidden>)

  • Prev by Date: AppleScript Reference Library
  • Next by Date: Re: file with most recent modification date
  • Previous by thread: Re: file with most recent modification date
  • Next by thread: Re: file with most recent modification date
  • Index(es):
    • Date
    • Thread