On 2017-04-14, Adrian Tuddenham <adr...@poppyrecords.invalid.invalid> wrote:
> OS 8.6
> Applescript 1.3.7
>
> I am trying to write a backup script and want to detect only those
> folders where changes have taken place. I want to avoid burrowing down
> into thousands of archived folders and files where there have been no
> changes.
>
> Is there a way of detecting, from the folder properties, when the
> contents of a folder have been altered? e.g. One of the files it
> contains has been modified and Saved with the same name. The
> Modification Date only seems to change when an item has been added,
> removed or re-named.
I recall you asking about this back in March.
You are correct that the modification date of a folder doesn't change
unless files are added, removed, or renamed in the folder. So you'll
have to look at the modification date of the individual files within the
folder. Here's how to get the modification date of a specified file,
"source":
tell application "Finder"
set modDate to the modification date of (file source)
log modDate
end tell
As I mentioned back in March, there are applications that synchronize
folders in classic Mac OS, like Folder Synchronizer (see the "Previous
Versions" link on this page):
<
http://www.softobe.com/folderssynchronizer.html>