Created
March 7, 2011 10:17
-
-
Save nrolland/858339 to your computer and use it in GitHub Desktop.
display keyboard applescript/lion et SL
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
set proc_ to "/System/Library/Input\\ Methods/KeyboardViewer.app/Contents/MacOS/KeyboardViewer" | |
set app_ to "KeyboardViewer" | |
try | |
do shell script "ps -axwww | grep" & space & proc_ & space & "| grep -v grep" | |
tell application app_ to quit | |
on error | |
do shell script proc_ & space & "> /dev/null 2>&1 &" | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment