set yy to (year of (current date)) set mm to (month of (current date)) as number set dd to day of (current date) set theTime to time of (current date) set hh to (theTime div 3600) set theTime to theTime - hh * 3600 set min to (theTime div 60) set theTime to theTime - min * 60 set ss to theTime set theDate to (yy & "." & mm & "." & dd & " " & hh & ":" & min & ":" & ss) as string set the clipboard to theDate tell application "System Events" key down {command} keystroke "v" key up {command} end tell