Команда keystroke
будет работать для вас.
tell application "System Events" to keystroke "A phrase" & return & "Another phrase"
Если вы хотите, чтобы конкретное приложение выполняло набор текста, просто сделайте что-то вроде следующего:
tell application "System Events" to tell process "TextEdit" to keystroke "A phrase" & return & "Another phrase"