tell application "System Events" tell application "TextEdit" to activate tell process "TextEdit" to keystroke "c" using command down tell application "Terminal" to activate tell process "Terminal" keystroke "v" using command down keystroke return end tell end tell