Skip to content

Instantly share code, notes, and snippets.

@jtatum
Created February 12, 2013 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtatum/4772643 to your computer and use it in GitHub Desktop.
Save jtatum/4772643 to your computer and use it in GitHub Desktop.
Send a global key in ATOMac
import atomac
from atomac.AXKeyCodeConstants import *
app=atomac.getAppRefByLocalizedName('iTerm')
# the COMMAND constant here comes from AXKeyCodeConstants
app.sendGlobalKeyWithModifiers('n', [COMMAND])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment