A few files wont update the date/time from the json file

Started by George.e, June 20, 2021, 04:03:07 AM

Previous topic - Next topic

StarGeek

Quote from: jwilleke on May 31, 2024, 08:54:20 AMexiftool --ext pdf --ext json --ext log --ext _gs --ext gsl -p '$directory/$filename -if 'not $datetimeoriginal' -r .

What OS/Shell?  Can you share a file where this happens?

I see nothing wrong with this command, and can't figure out how you would even get a "Tag not defined" warning for it.
"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

StarGeek

Ok, I figured it out. In the files where you get "Warning: [Minor] Tag 'datetimeoriginal' not defined", those are the files that don't have the DateTimeOriginal.  So those files are the ones their file paths listed with the -p (-printFormat) option. If you are redirecting the text into a file, then this line won't appear in that file because it is coming from STDERR, not STDOUT.

But you do have an error in the command I didn't notice. You need a closing quote for the -p
-p '$directory/$filename'

Alternatively, you can use Filepath which will give the absolute file path instead of the relative filepath.
-p '$Filepath'
"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