Change file name
I am trying to change the name of a desktop file:
tell application "Finder"
set name of file "Thursday DATE.png" of desktop to "DATE.png"
end tell
I get the following error:
error "Finder got an error: Can’t set file \"Thursday DATE.png\" of desktop to \"DATE.png\"." number -10006 from file "Thursday DATE.png" of desktop
Thanks for any help
iMac Line (2012 and Later)