Applescript & Photos app: How can I "view" an album?
I've googled a lot but I couldn't find an answer to the following question (also Apple's documentation on Applescript is very poor and is getting worse and worse...):
How can I "view" an album in the Photos main window? "View" here refers to the behaviour when a user clicks on the album name in the sidebar to the left of the main window and hence all media items contained in this album are displayed in the main window.
I couldn't find the Applescript method that would cause this action.
Tried this:
tell application "Photos"
set a_id to album "IMG_0144.JPG" of folder "Duplicates"
select album a_id
end tell
but:
error "Photos got an error: album (album id \"336FE692-66EC-46E6-8E65-C28026610BA6/L0/040\" of folder id \"640B17CF-856D-4346-8CB1-892657261A38/L0/020\") doesn’t understand the “select” message." number -1708 from album (album id "336FE692-66EC-46E6-8E65-C28026610BA6/L0/040" of folder id "640B17CF-856D-4346-8CB1-892657261A38/L0/020")
Anyone having an idea how to do this?
MacBook Pro 13”, macOS 10.15