Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Touch your files instead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Touch your files instead
Authored by: Elander on Jan 14, '02 10:19:54AM

A faster and easier (and cheaper) method to change modification dates is to simply use the command line application "touch" on your image files.

If you want to set the modification date for all files in the current folder to 12:34:56 on april second 2001, use this:

cd to the folder where your images are and give this command:
touch -m *.* -t 200104021234.56

That should do it. Check out the man pages for "touch" (type "man touch" without the quotes in Terminal) for more options.



[ Reply to This | # ]
Touch your files instead
Authored by: Anonymous on Jan 14, '02 11:39:27AM

I know about touch, but I specifically wanted to make sure that the files modification date was the same as the creation date, in other words, keeping the images that I edited in the same folder as the untouched (no pun intended!) images.

Doing a global "touch" as you outline does not solve my problem.

I appreciate the comment - I did consider 'touch', in combination with various scripting technologies, but getting that 'creation date' from a file was problematic. Got some code that does a getattrlist on HFS volumes, but then found this program that did what I wanted.



[ Reply to This | # ]