Reputation: 207
I am writing an apple-script.
In which I need to write code which means to hit escape button.
I'm not getting how to do it.
Can any one help?
Upvotes: 18
Views: 12028
Reputation: 1843
simple,
tell application "System Events"
key code 53
end tell
Upvotes: 27