Set file creation date/time to the Create Date

Started by tryingtryingtrying, January 29, 2024, 12:02:28 PM

Previous topic - Next topic

tryingtryingtrying

I am trying to write a script on my Mac using python, that'll use the
create date parameter (2023 August 4th, as seen in the image) and set the
file creation date (which I think is the one seen in the metadata in the file Finder) to that value.
I am having trouble doing that, can I please get some help?
Thank you!

8d1e0f16e2b4b6a6d9c4e8f7838886c94d713d01705982f7df23792a7ae219ba.png

Phil Harvey

The ExifTool command would be:

exiftool "-filecreatedate<createdate" FILE

But you need setfile to write this in MacOS.  The command installs setfile:

xcode-select --install

- 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 ($).

StarGeek

Quote from: tryingtryingtrying on January 29, 2024, 12:02:28 PMI am having trouble doing that, can I please get some help?

I'm guessing that your problem was FAQ #2.  You were trying to use tag descriptions instead of the tag names.
"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

tryingtryingtrying

Quote from: Phil Harvey on January 29, 2024, 12:10:12 PMThe ExifTool command would be:

exiftool "-filecreatedate<createdate" FILE

But you need setfile to write this in MacOS.  The command installs setfile:

xcode-select --install

- Phil

Thanks! that worked.