AppleScript to copy file names to Photos App
I found this script on the Apple Support board and it works very well except it copies the file names complete with the file extension. Since I am not good at script writing, I would appreciate someone suggesting how to modifiy this script to copy the file name minus the file extension.
tell application "Photos"
set medTot to count of media items
repeat with mediaIndx from 1 to medTot
tell media itemmediaIndx
if name = missing value or name = "" then
set name to filename
end if
delay 0.1
end tell
end repeat
end tell
MacBook Pro (Retina, 15-inch, Mid 2014), OS X El Capitan (10.11)