Key Commands in a Dictionary?

After some thought, any implementation of this idea is arbitrary. It's perhaps most helpful if I post a macro template, and an Action. (I haven't tested the action, but it's very simple.)

Create your key code translation dictionary as a PLIST file, then use CJK's invaluable PLIST/Dictionary Action to read it in as one action.

I've documented the macro with more information and suggestions, including a reference to key codes.

Cheers!

Attached are:
Apple Key Codes.plist.zip (1.6 KB)
Send Key Command.kmlibrary (19.2 KB)
Send Key Command.zip (11.3 KB)

2 Likes