Re: last modified file - how to catch?
Re: last modified file - how to catch?
- Subject: Re: last modified file - how to catch?
- From: Shane Stanley <email@hidden>
- Date: Mon, 07 Jul 2014 10:29:24 +1000
On 7 Jul 2014, at 10:09 am, Christopher Stone <email@hidden> wrote:
A faster method is:
------------------------------------------------------------------------------------------- set _path to POSIX path of (path to downloads folder as text) set lastModifiedFile to first paragraph of (do shell script "ls -Ft " & quoted form of _path & " | sed -E '/\\/$/d'") -------------------------------------------------------------------------------------------
Except it unfortunately fails when there are package files involved.
I also note that on my Mac (10.9.4) the Finder seems to be including .DSStore files in my example (which is essentially the same as yours).
|
_______________________________________________
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