I am working on a script that puts in strings of text into a document, and I was wondering how you would have apple script input the keystroke "Option-Return"

1 Answer 1


keycode 58 + 36

  • tell application "System Events" to key code 36 using {option down}

a handy link on applescripty - http://eastmanreference.com/complete-list-of-applescript-key-codes/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .