MACSCRPT Archives

June 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 13 Jun 2011 12:27:45 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
On Jun 13, 2011, at 8:03 AM, Nobumi Iyanaga wrote:

> Hello,
> 
> I need to write a script which compares two folders recursively, finds files and folders of the same name at the same location in the folder structure, and if they are of the same size, set the modification date of files/folders of the source folder to files/folders of the destination folder.
> 
> AppleScript is probably not the fastest way to do that; and I almost don't know how to go through folders with AppleScript; but the only scripting languages that I know of (a little) are AppleScript and Perl -- and it seems Perl has no command to set the modification date of a file/folder.
> 
> Could some kind soul help me to write such a script?
> 
> Thank you very much in advance.
> 
> Best regard,
> 
> Nobumi Iyanaga
> Tokyo,
> Japan

If you have the satimage scripting addition installed it is simply.

backup folder1 onto folder2 level 1

It is available at http://www.satimage.fr/software/en/

-Mark
How often on a list this dead do you get an answer this fast?

ATOM RSS1 RSS2