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 12:58:31 +0100
It may be useful to look at :
http://lists.apple.com/archives/applescript-users/2004/Mar/msg00484.html
Here is just the most important part :
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 '/$')
Yvan KOENIG (VALLAURIS, France) mardi 26 novembre 2013 12:58:23
_______________________________________________
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