Syncing albums with iCloud shared library #1304
RhetTbull
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@RhetTbull Thanks a ton, that was exactly what I needed! Is there a way how I can run this command automatically? I created an intelligent folder with all the photos that are candidates for synching, but I did not find a way how to select this folder automatically via a script. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
iCloud shared library syncs keywords and other metadata between shared libraries but does not sync albums. With v0.65.0 of osxphotos, I've added several new features include an
--album
option toosxphotos batch-edit
. This allows you to now sync albums between shared libraries using the following workflow.On the first user's machine (that has albums you want to sync), run:
osxphotos batch-edit --verbose --keyword "{album?album:{folder_album}}"
which will write the album name in form
album:Folder/Album
to the keyword field. Then on the other user's machine:reads the album name from the keyword field and splits it into folder and album name and adds the photo to the album, creating album and folders as necessary.
Both commands can be run on each user's machine to sync albums between shared libraries. The commands can also be combined into a single command that can periodically run on each user's machine:
Note that if a photo is removed from an album, this will not remove it (nor will it remove the
album:AlbumName
keyword that gets added) so that's one current limitation. This could be sovled with some more complex logic or a customosxphotos run
script but I've not tackled that yet.Beta Was this translation helpful? Give feedback.
All reactions