Re: Backing up only new files
Re: Backing up only new files
- Subject: Re: Backing up only new files
- From: Bernard Azancot <email@hidden>
- Date: Tue, 27 Apr 2004 19:37:35 +0200
Le 27 avr. 04, ` 07:00, email@hidden a
icrit :
set up the recursion depending on the structure of your file system.
Primarily, decide how many folders deep do you want to check for
modified files before you simply copy the whole folder. It will be a
big time saver. Once you have the recursion set up in a repeat loop,
here's the Finder terminology, assuming originalItem and backupItem are
references to the corresponding files.
tell application "Finder"
if ((modification date of item backupItem) < (modification date of
item originalItem)) then
-- originalItem is newer
else
--backupItem presumably has same modification date (or is newer, which
would be wierd)
end if
end tell
Cheers,
Joe
Thank you very much, Joe.
I see what you mean, but...could you give me a simple example of how
to set up the recurssion in a repeat loop.
Evil is in details.
Yours
Bernard
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.