Buyer Pro
Buyer Pro

Reputation: 207

How to write Applescript to press Escape key?

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

Answers (1)

Vighnesh Pai
Vighnesh Pai

Reputation: 1843

simple,

tell application "System Events"
     key code 53
end tell

Upvotes: 27

Related Questions