-- this works! 22 July 2022 -- see [MacOS Photos and AppleScript Ð /var/bergercity/](https://www.bergercity.de/allgemein/macos-photos-and-applescript/) tell application "Photos" activate display dialog "Enter title" default answer "" buttons {"Submit"} with title "Enter title" default button 1 if the button returned of the result is "Submit" then set myName to text returned of the result end if set imageSel to (get selection) if imageSel is {} then error "Please select some images." else repeat with im in imageSel tell im set name to myName as string end tell end repeat end if end tell