I recently had a situation where I needed to fix the dates on some photos imported from Lightroom into Photos.app. For some reason, Photos.app had chosen the file creation date (which was the Lightroom export date), rather than the capture date stored in embedded exif data.
This script works after importing the photos, if you've already done some organising.
Put the photos you want to adjust into an album called "DateFix".
You'll need exiftool installed.
brew install exiftool
Make a scratch dir as per the first line of the script.
Then run the script. The photos will be adjusted to match the date in the EXIF data.
Many thanks @joerick for this great script!
When running I had a bug with
thepath
, which I've fixed below. Also,text 36 thru 36
should betext 36 thru 37
, and I've added a check for the EXIF output as I had some GIFs that did not have EXIF data.