Hi everybody,
I've been working around a command to write a list of pictures, only when one or two date(s) of filemodifydate, datetimeoriginal and CreateDate differs from the others and/or is empty. No way to make it work. I've tried hundreds of different variations... no way, my level in Exiftool doesn't allow me to understand :'(
exiftool -if '$datetimeoriginal=~s/ .*// and $createdate=~s/ .*// and $filemodifydate=~s/ .*//' /Users/name/FolderA/FolderB -r -datetimeoriginal -filemodifydate -CreateDate -filename -T > ~/Desktop/out.txt
Thanks a lot for your help
Rather than use regex to strip away the time, use the -d (https://exiftool.org/exiftool_pod.html#d-FMT--dateFormat) to make it easier to compare. Then use hashtags to disable the date conversion when you output the tags.
exiftool -d %Y%m%d -if "$createdate ne $datetimeoriginal or $createdate ne $filemodifydate or $datetimeoriginal ne $filemodifydate" -r -datetimeoriginal# -filemodifydate# -createdate# -filename -T
Amazing !!! Works like a charm !!
Many many thanks :D