Hello there! I've searched all over google and I just can't seem to find what I am looking for:
I've got a Yamaha MIDI keybaord connected to a USB port and essentially what I want to do is when I press a key on the keyboard, it will open an application, or do a keypress.
I haven't had any success with anything I've tried, so this is my last resort.
I know there are programs that can do things like what I want, but I want to try and do it myslef with applescript, and because I can use applescript to run as a service so that it will automatically detect the USB MIDI Keyboard without ever needing to open a secondary program.
So first of all, how would I detect my keyboard? This is the information that I get when I do "system_profiler SPUSBDataType"
I've got a Yamaha MIDI keybaord connected to a USB port and essentially what I want to do is when I press a key on the keyboard, it will open an application, or do a keypress.
I haven't had any success with anything I've tried, so this is my last resort.
I know there are programs that can do things like what I want, but I want to try and do it myslef with applescript, and because I can use applescript to run as a service so that it will automatically detect the USB MIDI Keyboard without ever needing to open a secondary program.
So first of all, how would I detect my keyboard? This is the information that I get when I do "system_profiler SPUSBDataType"
USB Midi :
Product ID: 0x4348
Vendor ID: 0x552d
Version: f1.10
Speed: Up to 12 Mb/sec
Location ID: 0x14100000 / 19
Current Available (mA): 500
Current Required (mA): 100