I've been looking into tools like Karabiner, which are cool, but I would like more control. In general, I'd like to remap specific keys to run AppleScript or some other code.
Ideally it wouldn't send the keystroke though to the active application.
Is there any way to do this?
At the moment I'd like to remap the numpad keys to focusing specific applications, and if possible, specific windows in those applications. A general way to run code would be best, but anything that can accomplish this would be very much appreciated.
open files with photoshop
button that opens selected files (in Finder or Path Finder) in photoshop and long pressing the same key just opened photoshop by itself. Karabiner had to be rebuilt to support sierra and so the Sierra version is lacking many of the features that were in the earlier version. The new version has been in the making for quite a while so I wonder how close it is right now. Just in case you are looking for alternative methods, there's the Elgato Stream Deck, which you can use for the same purpose. – Joonas Feb 27 '18 at 11:52Type a keystroke
. Hold down modifier keys and then press the regular key. — KM is great. This is a bit stupid, but I think my favorite thing is navigating menu items. Because sometimes there are menu items you can't give a shortcut in the application. Simulating a click on that menu item in applescript is a pain in the ass, but in KM you just basically navigate the menu and choose the menu item you want KM to click. — Just in case you missed it, you can sync the macros by going to KM settings and pointing it to a sync folder (dropbox for example). – Joonas Feb 28 '18 at 08:07