tell application "Photos"
set selMedia to (get media items whose id contains "AEA0BA51-2AED-48E8-A5E7-4EFD36A9508B")
return {(get location of (item 1 of selMedia)), (get filename of (item 1 of selMedia))}
end tell
NB: permission must be asked within the Plist file, see #11 where permission is also needed for adding to albums
Works like this :
NB: permission must be asked within the Plist file, see #11 where permission is also needed for adding to albums