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.98k stars 94 forks source link

Add --add-to-album ALBUM_TEMPLATE to batch-edit #1009

Closed RhetTbull closed 9 months ago

RhetTbull commented 1 year ago

Allowing a template for --add-to-album would allow syncing of Albums across iCloud Shared Library thusly:

User 1 uses batch-edit to create keywords that match each album:

osxphotos batch-edit --keyword "{album}" --keyword "{keyword}"

User 2 uses batch-edit to reverse this:

osxphotos batch-edit --add-to-album "{keyword}"

Add option for auto-splitting albums/folders.

RhetTbull commented 1 year ago

See this: https://mjtsai.com/blog/2022/11/09/keywords-instead-of-albums-with-icloud-shared-photos/

RhetTbull commented 1 year ago

See also: https://www.reddit.com/r/ApplePhotos/comments/13jajo7/shared_library_albums_arent_shared/

RhetTbull commented 12 months ago

keyword template: {album?album:{album}} adds keywords for album:Album Name

album template: {keyword|filter(startswith album:)|sslice(6:)} finds keywords beginning with album:, strips that part and returns the album name.

These would allow bi-directional sync of albums between shared libraries.

RhetTbull commented 9 months ago

osxphotos batch-edit --keyword "{album?album:{folder_album}}" --verbose osxphotos batch-edit --verbose --album "{keyword|filter(startswith album:)|sslice(6:)}" --split-folder "/"