Exporting original photos from Mac Photos in a separate folder preserving creation date and time for files. Export can be done by year and month.
- Copy file mac-export-photos.py in your home folder.
- Make file mac-export-photos.py executable. In Mac Terminal
chmod a+x ~/mac-export-photos.py
Run in Mac Terminal
cd ~
./mac-export-photos.py
i.e. May 2017
./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder>
Mac Photos is storing photos time in UTC (Coordinated Universal Time). For the correct hour use parameter --hours-offset
i.e. If your photos are taken in Berlin use:
./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder> --hours-offset 2
i.e. If your photos are taken in Bucharest use:
./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder> --hours-offset 3
./mac-export-photos.py --year 2016 --month 04 --destination <destination_folder> --filter MOV
Mac Export Photos preserving creation date and time.
optional arguments:
-h, --help show this help message and exit
-y YEAR, --year YEAR Year
-m MONTH, --month MONTH
Month
-d DESTINATION, --destination DESTINATION
Destination folder
-ho HOURS_OFFSET, --hours-offset HOURS_OFFSET
Hours offset in hours
-f FILTER, --filter FILTER
Filter files by extension. i.e. JPG, MOV