Re: Change a File's Creation Date (OS 9.1)
Re: Change a File's Creation Date (OS 9.1)
- Subject: Re: Change a File's Creation Date (OS 9.1)
- From: q~ <email@hidden>
- Date: Mon, 27 Aug 2001 22:20:33 -0400
Since I set off such a nasty controversy with this request I thought
some of you might want to see the result of your help.
--this script requires the Akua Sweets v143 OSAX to function properly
on open (thefiles)
repeat with x from 1 to count of thefiles
try
set filetochange to item x of thefiles
basic info for file filetochange
set fileinfo to result
set creation date of fileinfo to current date
set modification date of fileinfo to current date
apply catalog info fileinfo to file filetochange
on error
--do nothing, just keep going
end try
end repeat
end open
Just for fun I ran Norton Disk Doctor after running this script on a few
files (it also worked on a folder...). It didn't complain about the
affected files, this might have been different if I hadn't updated the
modification date as well.
As far as the moral debate goes, I tend to side with the who cares
crowd. Anyone who relies on the creation and modification dates in the
Finder (or in any other OS) should reassess their faith in modern file
systems. -- q~