applescripted keybinding issue with extended keyboard's number keys

0

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

motoservo

Posted 2015-11-01T01:37:47.733

Reputation: 1

I'm puzzled… you already know how to remap the keys from 'above qwerty' to the 10-key, simply change the key-command in sys prefs/keyboard. Yes, they do look identical & the defaults are the qwerty, but it's simple enough to go down the list & change them manually. Are you looking for a repeatable solution? Do you have GUI scripting enabled? – Tetsujin – 2015-11-01T08:35:59.653

I was looking for a way to script it since I have 12 desktops that, now since I'm working remotely, I have to change twice a day. – motoservo – 2015-11-02T18:21:54.743

"working remotely"… over what? If you're using Apple's Remote Desktop, your local Space-switching keys override the remote's. I have to have my generic 'Mission control' key set differently to the remotes', then I can call theirs by the default Ctrl/up arrow & pick from there. – Tetsujin – 2015-11-02T19:10:54.580

Remotely, just meaning, not at home with my extended keyboard and magic trackpad. – motoservo – 2015-11-03T20:19:08.893

That makes it even less clear… so, you mean at home you have an additional keyboard & mouse on a laptop… then you need to work without them? That's not really 'remote' it's just 'unplugged'. 'Remote' has the connotation of 'over the interwebz', not just unplugging the keyboard. – Tetsujin – 2015-11-03T21:08:15.777

Well, the term has several meanings: "Remote work", according to Wikipedia, is work away from the usual place of work. But yes, working without my usual desktop setup available (ie. keyboard and trackpad). However you wanna slice it. – motoservo – 2015-11-03T22:41:43.617

No answers