Newbie: selecting newest file in a folder
Newbie: selecting newest file in a folder
- Subject: Newbie: selecting newest file in a folder
- From: email@hidden
- Date: Thu, 19 Apr 2001 10:22:14 -0500
Hi all,
I'd appreciate any tips on how to select the newest file in a folder
(Newbie to creating AppleScripts).
I have a web server that rolls it's server log daily into a folder.
I'm trying to create a script that will mount the web server on another
machine and then copy the newest log file to another folder and then put
away the server.
I believe that I have everything working except how to select the newest
log file. It would be the only one with a Date Modified that included
"Today" (as long as I run the script daily). It is also the LAST item in
the directory, since it is the newest. This shouldn't be very hard (and
probably isn't) but I'm stumped and finding no answers in my web searches.
Thanks for any replies. (Please Cc me, as I'm normally on Digest mode).
email@hidden
Darren Addy
Web Specialist
Information Technology Services
University of Nebraska at Kearney