Runs a local AppleScript or script over SSH to simulate the Escape key.

Matthew's Score
3/5
Total Actions
5
Built For

Shortcut Information

Use this shortcut as an example for how to run an AppleScript that “presses” a key that’s not a normal keyboard character.

Also works well if you’re a VIM user.

Find the full list of AppleScript key codes here: https: or or eastmanreference.com or complete-list-of-applescript-key-codes
Complexity
Interactivity
Compatibility

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Press%20Escape
Open Shortcut deep link
shortcuts://open-shortcut?name=Press%20Escape
AppleScript code
tell application “Shortcuts Events” run shortcut “Press Escape” end tell

More From This Folder

You Might Also Like


Get way deeper into Shortcuts – become a member.