Puts the date and time in the current Textedit cursor position. (Requires UI scripting enabled.)
--Insert date and time into TextEdit
set date_ to (current date) as string
tell application "System Events"
tell application "TextEdit" to activate
tell process "TextEdit" to keystroke date_
end tell