I've written an applescript that remaps the Switch to Desktop n commands to the extended keyboard's numbers instead of the main keyboard. I've looked up the codes and they are Key codes 82 - 92. The script runs without issue but the keystrokes are still using the builtin keyboard's numbers.
When I open System Preferences and click into the Shortcut for each command, type it using the extended keyboard's numbers it works without issue, though, confusingly, the input on the screen is the exact same.
Can anybody tell me how I'd go about remapping these commands to use the extended number keys?
Here's the applescript that i wrote to Remap the Switch to Desktop