Replies: 2 comments 1 reply
-
Hello @gurchik To determine whether a photo is in a specific Shared Album, the best approach is to use A better approach would be to:
This avoids solely relying on matching multiple fields, which can be error-prone if metadata changes. Let me know if you'd like an example script! |
Beta Was this translation helpful? Give feedback.
-
@gurchik sorry I missed this question when you first posted it. There's a value in the Photos database that can be used to map a shared photo back to the original asset but unfortunately this is currently not exposed by OSXPhotos. The value is
This outputs something like this:
You can select an original in the library or a photo in a shared album and it will show you all albums and shared albums that photo is part of. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to query my library for photos that are not in a specific Shared Album.
When a photo is added to a Shared Album, the PhotoInfo object in the Shared Album will have a different uuid, filename, path, etc. So what is the best way to determine whether it's in the Shared Album? Currently I'm checking if the
original_filename
,date
,description
, andowner
are the same, but is there a better way?Beta Was this translation helpful? Give feedback.
All reactions