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:
Nobumi Iyanaga <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 13 Jun 2011 21:03:43 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
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

ATOM RSS1 RSS2