User léonie posted the following Automator workflow to add the same description to all selected photos.
on run {input, parameters}
-- batch change the description to the input
tell application "Photos"
activate
set imageSel to (get selection)
if imageSel is {} then
error "Please select some images."
else
repeat with im in imageSel
tell im
set the file name to input
end tell
end repeat
end if
end tell
return input
end run
Copy and paste the above script into Automator as shown in this screenshot and save as a application:
Place the resulting app wherever it works best for you.
FWIW she also posted this script that will put the file name of the selected photos in the Title field which iPhoto does. Copy and paste into Applescript and save an an application.
tell application "Photos"
activate
set imageSel to (get selection) -- get a list of selected images
set counter to 1
set currentfilename to ""
if imageSel is {} then
error "Please select an image."
else
repeat with im in imageSel
set title to the name of im
if not (exists (title)) then
set currentfilename to the filename of im as text -- retrieve the filename of image "Im"
set newname to currentfilename & "." & counter
set counter to counter + 1 -- increment the counter
set the name of im to newname -- write the newname to the title field
end if
end repeat
end if
return currentfilename -- return the filename of the last image
end tell