Think it's just replace the mdls stuff with exiftool:
Or break it out:
Code:
touch -t $(date -j -f "%Y%m%d%H%M" -v-6H $(/usr/local/bin/exiftool -CreateDate -d "%Y%m%d%H%M.%S" -s3 "$f")) "$f"
Or break it out:
Code:
dstr=$(date -j -f "%Y%m%d%H%M" -v-6H $(/usr/local/bin/exiftool -CreateDate -d "%Y%m%d%H%M.%S" -s3 "$f"))
touch -t $dstr $f