Hacker News new | ask | show | jobs
by asdaq1312512 899 days ago
Looks promising - will look into it!
1 comments

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.

Check out this which I believe has that feature: https://github.com/RhetTbull/osxphotos
Yes, `osxphotos show UUID` will open the photo with UUID in the Photos app. (I'm the author of osxphotos)