Re: Modified "modification date"
Re: Modified "modification date"
- Subject: Re: Modified "modification date"
- From: Axel Luttgens <email@hidden>
- Date: Fri, 11 Dec 2009 12:20:20 +0100
Le 11 déc. 2009 à 05:23, ba95 a écrit :
> [...]
>
> Axel,
>
> You should remember me.
> [...]
Hello Bernard,
Yes; just wanted to be sure. ;-)
> Command used: duplicate
> Volume01: internal mac HD (HFS)
> Volume01: external HD (FW-HFS)
If you allow, I'll reproduce an excerpt from your reply to Luther as well, since it contains two very important informations:
> The snippet to change is:
> --
> set XXX to folder "HD:Applications:xxx:"
> set YYY to folder "BUdisk:Backupss:yyy:"
> duplicate XXX to YYY with replacing
> --
First, you are considering the duplication of a folder, not of a file.
This is rather important, since I haven't been able to reproduce the problem with files: the Finder's duplicate command seems to always correctly preserve the file's modification date here, with 10.6.2.
Second, you specify the destination of the copy as folder "BUdisk:Backupss:yyy:".
This means that folder "HD:Applications:xxx:" will be copied **into** folder "BUdisk:Backupss:yyy:", and that you thus end with folder "BUdisk:Backupss:yyy:xxx:".
But this has an important side-effect, since you are indeed **modifying** folder "BUdisk:Backupss:yyy:" at the time of the copy...
Perhaps did you in fact mean:
tell application "Finder"
set XXX to folder "HD:Applications:xxx:"
set BBB to folder "BUdisk:Backupss:"
duplicate XXX to BBB with replacing
end
Of course, your copy will now be named "xxx" as the original folder, and the modification date of folder "BUdisk:Backupss:" will be modified upon each backup operation.
But both the original "xxx" and its copy should have identical modification dates; could you check on your system?
HTH,
Axel
_______________________________________________
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