Can anyone explain why the following piece of Applescript code returns an error:
tell application "Photos"
set idList to {"v3xzjwPQT0y8a844gLHLHWg", "v3w3twPQT0y%%844gLgf4Wg"}
set itemList to every media item in application "Photos" where its id is in idList
log (count of itemList)
end tell
The error is:
error "Photos got an error: Can’t make {\"v3xzjwPQT0y8a844gLHLHWg\", \"v3w3twPQT0y%%844gLgf4Wg\"} into type specifier." number -1700 from {"v3xzjwPQT0y8a844gLHLHWg", "v3w3twPQT0y%%844gLgf4Wg"} to specifier
in application "Photos"because there is a global application tell block. But even without this double reference the script throws an error - vadian