• 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: Shell script help - get date of last modified file in hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script help - get date of last modified file in hierarchy


  • Subject: Re: Shell script help - get date of last modified file in hierarchy
  • From: Emmanuel <email@hidden>
  • Date: Tue, 27 Mar 2007 10:23:22 +0200

At 10:27 PM -0400 3/26/07, Mark Walsh wrote:

I'm looking for a simple shell script to get the modification date of the last modified file in a folder's complete hierarchy.

I'm trying to write a script to make sure that when a job is written to our
server, that I can make sure it has the most recent files. I already have
shell scripts that check the count of files in the hierarchy (as well as
logging the filepaths) and I would like to add a warning if it does not find
the same date for the last modified files in each folder.

Any help would be greatly appreciated.

There are certainly several ways.

Personally, I would use do shell script "ls -t" to get the last modified file first, and maybe I would use AppleScript's "info for" to get the modification date if needed.

Emmanuel
_______________________________________________
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
References: 
 >Shell script help - get date of last modified file in hierarchy (From: Mark Walsh <email@hidden>)

  • Prev by Date: Moving from Microsoft Office VBA to AppleScript: MacTech's Guide to Making the Transition.
  • Next by Date: [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released
  • Previous by thread: Re: Shell script help - get date of last modified file in hierarchy
  • Next by thread: Re: Shell script help - get date of last modified file in hierarchy
  • Index(es):
    • Date
    • Thread