This is a small but useful script that I made to help manage and streamline the organization of exports from Apple Photos. This script can...
- Read a photo library directory
- Recognize associated metadata and .mov files (live photos) and group them together in separate folders
- Ungroup image folders to bring all files to the root directory
- Fix naming errors in .aae files
Only use this script on backups and/or copies of your personal photo libraries. Edge cases have not been properly tested, and any errors or interruptions during execution may result in the loss of data. Use at your own risk.
[python3 | py] main.py <path/to/photolib> [folders | ungroup | print]
Unmodified exports of two photos from Apple Photos.
Running print
and folders
commands.
Results of the folders
command (can be undone with ungroup
).