MACSCRPT Archives

June 2006

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:
Barry Wainwright <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 30 Jun 2006 15:26:56 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On 30/6/06 15:05, "John A.M. Darnell" <[log in to unmask]> wrote:

> Hello all:
> 
>    I am looking for a Perl/PHP/Applescript command that can be used to
> change the date/time stamp of a file.
> 
>    For admin purposes after I finish working on a project I want to change
> the date and time to midnight on a particular date for all files in the
> project.  Its just a simple precaution that I can take to ensure that no
> files have changed (inadvertently or otherwise) since I last opened the
> code.
> 
> R,

repeat with theFile in allMyFiles
    do shell script "touch -t 200601010000 " & quoted form of posix path of
theFile"
end repeat

-- 
Barry

ATOM RSS1 RSS2