• 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
Newbie: selecting newest file in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Attaching a Folder Action
  • Next by Date: Re: Newbie: selecting newest file in a folder
  • Previous by thread: RE: Attaching a Folder Action
  • Next by thread: Re: Newbie: selecting newest file in a folder
  • Index(es):
    • Date
    • Thread