do not change "Date Modified" or "Date Created" on Mac

Started by boombass, July 24, 2017, 04:12:57 PM

Previous topic - Next topic

boombass

I am using this command to adjust createdate on my .mov files so that Google Photos will put them in the correct chronological order:

exiftool '-createdate<creationdate' -if '($filetype eq "MOV")' <dir>

It works well, but it makes a copy of the original files, and the newly modified versions have "Date Modified" and "Date Created" values of the time the new file was created.

How can I change my command so that new files are not created? I always work on copies and I would rather the "Date Modified" and "Date Created" values didn't change.

Thanks!

StarGeek

Add -P to the command to prevent change of the Date Modified.  On Mac, you'll need to add -overwrite_original_in_place to prevent change to the Date Created, though you won't get a backup file if you do.  You may not need to keep the the Date Created for Google photos, though.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

boombass

Thank you! This worked perfectly, and takes a step out of my workflow. Much appreciated!

Phil Harvey

On Mac, here is an alternative way to preserve the file system creation date/time which allows you to keep the "_original" backups:

exiftool -tagsfromfile @ -mditemfscreationdate ...

And add -P to also preserve the file system modification date/time.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).