Greetings, folks!
As much as I love my wireless keyboard (and can’t afford to replace it), my Logitech Control Center software has been tending to misbehave for a few years; the issue is any kind of notification as to the status of the Caps Lock key. Growl has a wonderful AppleScript capability and, AFAIK, Extra Suites is the only way to detect the status of the Caps Lock key. Thus I have written a simple, stay-open AppleScript app that really does work well . . . for a while.
After the Caps Lock key has been depressed for more than a few minutes, the response time of the script steadily increases such that I can release the Caps Lock key and the alert will keep going for many seconds. If left displaying the alert for too long, it eventually generates an error.
(I use the “Nano” Growl style with the opacity and duration both set to 0. The icon is just a single pixel so as to not be noticeable.)
Does anyone have any wisdom as to how to “smooth out” this process? Is there any other way to detect the status of the Caps Lock key?
Thank you!!
Richard Fairbanks
on idle
set x to 0
tell application "Extra Suites"
if (ES keys down) contains {"caps lock"} then set x to 1
end tell
if x is 1 then tell application "GrowlHelperApp" to notify with name "Caps Lock Notification" title "Caps Lock" description "" application name "Caps Lock Notification" image from location "/Users/me/Scripts/Growl Alerts/Caps Lock Icon.tiff"
return 2 -- this seems to be a good compromise for response time
end idle
Model: 2.33 GHz MBPC2D
Operating System: Mac OS X (10.4)