Change a file name with Applescript?
I currently have the script:
tell application "Finder"
set the name of file "/Users/rileylloyd/Desktop/Scan.jpeg" to "/Users/rileylloyd/Desktop/Scan.jpeg.bak"
end tell
and I get the error:
error "Finder got an error: Can’t set file \"/Users/rileylloyd/Desktop/Scan.jpeg\" to \"/Users/rileylloyd/Desktop/Scan.jpeg.bak\"." number -10006 from file "/Users/rileylloyd/Desktop/Scan.jpeg"
what am I doing wrong? is there an easier way to do this with "do shell script" maybe?
MacBook Pro, OS X Mountain Lion (10.8.1), 2.3 GHz i5, 4GB RAM, OCZ 120GB SSD