RhetTbull / osxphotos

Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
MIT License
1.88k stars 93 forks source link

Add `osxphotos copy` command to copy photos from one library to another #938

Open RhetTbull opened 1 year ago

RhetTbull commented 1 year ago

This could be a new library or existing one.

RhetTbull commented 1 year ago

In order to use a --download-missing option, the copy must be two steps: export all photos with metadata sidecars or db then switch libraries and import. Should this be the default? If there are no missing photos, it could be done in one step by switching to the target library at start then using osxphotos to read the source library.

RhetTbull commented 10 months ago

I've figured out enough of the PhotoKit private APIs to make this work without using AppleScript.