How do you send the "ESC" key in OS X using osascript

3

I'd like to create a small script using osascript in Mac OS X Snow Leopard to emulate pressing the Escape key on the keyboard. How is this most easily done?

somas1

Posted 2010-10-05T14:37:23.497

Reputation: 153

Answers

2

osascript -e 'tell application "System Events" to key code 53'

Chealion

Posted 2010-10-05T14:37:23.497

Reputation: 22 932