Creating a macro to activate caps lock

I am trying to activate caps lock through a macro action. How do I do this?

You cannot. You would need a lower level tool, perhaps Karabiner would work.

Thank you. I figured out a work around, but am curious- why can almost every other key be activated through a macro, except caps lock?

Caps Lock is not really a modifier. It behaves differently. It’s possible I could make it work, I’ll look in to it, but generally it is not a modifier, the modifiers are Command, Control, Option, Shift. Caps Lock generally isn’t, and people sometimes think the Fn key is, but it is definitely not a modifier.