var TextEdit = Application ( "TextEdit" ) ; TextEdit . activate ( ) ; delay ( 1 ) ; sys = Application ( "System Events" ) ; sys . keyCode ( 126 , { using : "command down" } ) ; sys . keystroke ( "2014 Copyright K.F" ) ; sys . keyCode ( 36 ) ;