Caps Lock Toggle AppleScript

I've built a simple AppleScript to toggle the CapLock
And it is working well.

But the caps lock LED doesn't activate.

Is there something I could add to the script to activate the Cap Lock indicator?

image

1 Like

Here is another approach:

However, see the restriction.

I don't believe it's possible to get the hardware indication (the light) from a software-based change. Alternatively, you could have a notification appear when a script runs. Example:

image

1 Like

Hey Mike,

Take a look at this:

Programmatically Toggle the Caps Lock Key

-Chris