I'm trying to reset filesystem times on a batch of photos, using tag -DateTimeOriginal. Which is straightforward; but I want to see only which files got updated and not warnings about skipped files. This example updates my timestamps, but fails to print anything except for the final summary.
exiftool -p '$filename' '-FileCreateDate<DateTimeOriginal' '-FileModifyDate<DateTimeOriginal' -if '$DateTimeOriginal' 2011DinnerPic.jpg
1 image files updated
If I don't require any file updates, the command works as expected.
exiftool -p '$filename' -if '$DateTimeOriginal' 2011DinnerPic.jpg
2011DinnerPic.jpg
What am I missing?
Your first command is writing metadata so the -p option is ignored. -p is for formatting the output when reading.
You could get the name of all processed files by adding the -v0 option:
exiftool -v0 '-FileCreateDate<DateTimeOriginal' '-FileModifyDate<DateTimeOriginal' -if '$DateTimeOriginal' DIR
- Phil
Maybe also try the -progress option (https://exiftool.org/exiftool_pod.html#progress-:-TITLE)?
Before your reply, I did suspect it wasn't allowed. But nothing found on the web would confirm it was by design. Thanks for your tips!