News for hackers. Stuff that matters.
Re:Cleaning up my 200GB iCloud with some JavaScript by asdaq1312512 on Friday January 05, 2024 @05:04PM (#38885600)
So it appears you can conveniently query the DB for filename (+directory), UUID, and (original) file size. But I can't find a good way of opening a Photo by filename or UUID.

After all, the file might not be present locally, so opening it should go through the Photos.app. But once you call AppleScript to open the file, you might as well use the AppleScript to comb through the database like the script I linked to earlier.

Re:Cleaning up my 200GB iCloud with some JavaScript by LVB on Friday January 05, 2024 @07:23PM (#38886925)
Check out this which I believe has that feature: https://github.com/RhetTbull/osxphotos
Re:Cleaning up my 200GB iCloud with some JavaScript by rhettbull on Wednesday January 10, 2024 @12:04AM (#38936430)
Yes, `osxphotos show UUID` will open the photo with UUID in the Photos app. (I'm the author of osxphotos)