Re: Edit the date Modified field
Re: Edit the date Modified field
- Subject: Re: Edit the date Modified field
- From: "Marc K. Myers" <email@hidden>
- Date: Sun, 21 Oct 2001 00:27:23 -0400
- Organization: [very little]
>
Date: Sun, 21 Oct 2001 07:13:09 +1000
>
To: email@hidden
>
From: Mark Gibson <email@hidden>
>
Subject: Re: Edit the date Modified field
>
Cc: Michelle Steiner <email@hidden>
>
>
Thanks for the help to date, three continents and on a Sunday morning
>
(at least here) too!
>
>
The script above works fine if I highlight the file and run it (no
>
doubt I could save it as an app and drop files on it too).
>
>
The problem I face is working my way through a server volume with
>
many folder levels and many dates to reset. I'm happy to run the app
>
several times but I need some sort of IF statement that says "If year
>
of date = 1963 then run" and the ability to dig down into the folder
>
structure.
>
>
The current script is fine for a file but if I select more than one
>
it only changes one file.
I'd use Akua Sweets "the entries in" command. It allows you to select
files from containers by modification date or creation date criteria.
It would provide you with a list of all the files that meet your
criteria and then you could loop through the list and do your date modifications.
set chgFiles to the entries in container "myDisk" ,
that were modified after date "Monday, December 31, 1962 12:00:00
AM" ,
that were modified before date "Wednesday, January 1, 1964 12:00:00
AM" ,
whose kinds are file ,
to a depth of -1 ,
as alias
If there are going to be more hits than you can comfortably fit in a
list, the command also provides a way to take your results piecemeal in
smaller lists in a loop.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[10/21/01 12:24:20 AM]