Created
February 12, 2013 19:32
-
-
Save jtatum/4772643 to your computer and use it in GitHub Desktop.
Send a global key in ATOMac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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