Open disaac opened 6 months ago
Thanks for the detailed report. This should really go on the photoscript repo so I'll cross-post there.
Unfortunately, there's nothing osxphotos or photoscript can do about this as it's how the Photos AppleScript interface behaves. Photos in shared albums and in "Shared for You" show up in the library but they are note really in the library (e.g. assets under management of Photos and iCloud) until they are imported to the main library. The Photos AppleScript interface, which is used by photoscript to interact with Photos, cannot access photos in the "Shared with you" or shared albums. That's an Apple issue and not one that osxphotos or photoscript can work around.
You can access these photos via osxphotos and export them, get the path, etc. but you cannot access them via AppleScript or photoscript. If a Shared with you photo has been imported to the library then you can access it as you've demonstrated.
Describe the bug Currently when processing photos in my Photos Library via the API an exception is raised on a small subset of photos that I attempt to fetch by the
uuid
. I experienced an exception in the following methods when attempting to access the photo by its uuid.photoscript Photo
photoscript PhotosLibrary
There are only 3 out of my entire library that have this issue and all three are "Shared with You" photos in my library.
To Reproduce Steps to reproduce the behavior:
Expected behavior When referencing a photo that osxphotos cli can query and return information on using the Photo or photolibrary should not return an exception attempting to access the photo by the same uuid.
successfully returns photo information
Desktop (please complete the following information):
Additional context