• 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: 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


  • Follow-Ups:
    • Re: file with most recent modification date
      • From: "koenig.yvan" <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>)
 >Re: file with most recent modification date (From: Robert Poland <email@hidden>)
 >Re: file with most recent modification date (From: Shane Stanley <email@hidden>)
 >Re: file with most recent modification date (From: Shane Stanley <email@hidden>)
 >Re: file with most recent modification date (From: Emmanuel LEVY <email@hidden>)
 >Re: file with most recent modification date (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: file with most recent modification date
  • 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