renaming filename

How do I rename a file ?

I want the file to have the name of the todays date.

Simple, change the name property of the file. See the name property of the file class in Finder’s applescript dictionary (File → Open Dictionary in Script Editor)

tell application "Finder"
	set theFile to alias "The:Path:to:the:file"
set newName to the name of theFile & (do shell script "date "+%m%d%y%H%M"")
	set the name of theFile to newName
end tell