Created
April 25, 2012 10:43
-
-
Save pjrobertson/2488903 to your computer and use it in GitHub Desktop.
Toggle Keyboard Viewer for OS X
This file contains 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
tell application "System Events" | |
if exists (process "Keyboard Viewer") then | |
click (process "Keyboard Viewer"'s window 1's buttons whose subrole is "AXCloseButton") | |
else | |
do shell script "/usr/local/bin/keyboardViewer" | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment