Feb 26, '04 07:02:00AM • Contributed by: jakacmar
So I wrote a short AppleScript that checks to see if this process exists, quits it if it does, and then launches KeyboardViewerServer. It's worked perfectly for me. I saved the script as an application, called it "Keyboard Caps" and put it in my Utilities folder. Now I can finally get rid of the input menu. Here's the script.
tell application "System Events"
if exists process "KeyboardViewerServer" then
try
quit application "KeyboardViewerServer"
end try
end if
end tell
tell application "Finder"
-- NOTE: Enter the following two lines as ONE LINE without spaces!
open item "System:Library:Components:KeyboardViewer.component:
Contents:SharedSupport:KeyboardViewerServer" of the startup disk
end tell
Now "Key Caps" is back in its original location.
[robg adds: The first couple of times I tried to compile this, it failed. I have no idea why, as after simply adding and removing a space from the script, it compiled and ran just fine...]
