CommandPost and OSC Support

Hi, I'm creating a software (porting it from windows where I have it already working perfectly) on osx, and this is an overview about what it is:

There's one software made for a controller panel, which is a Mapping software for this controller. This mapping software can "shoot" some OSC messages.

My software listen these OSC messages and than execute functions that controls your mouse, like moving it for a specific position, start to drag, move again, stop to drag, click, double click and execute some keyboard shortcuts too.

So, what happens is: when you press a button or move a knob on the control panel, it sends a command to the mapping software and the mapping software shoots the OSC command and my software listen the OSC command and execute the function doing something with your mouse or keyboard, and with that, I can control things on a specific software, like Adobe Premiere for example (just an example).

Right, as I said this already works on Windows perfectly. I used AHK on windows to make this work. AHK has a DLL which you just load it, and any software that you develop on AHK loading this DLL, will listen all the OSC commands shoot on the system.

For OSx I thinking in use CommandPost to control the things on the screen, the mouse, the keyboard and etc. But natively commandpost doesn’t has a OSC Support.

So what I need is something to make a bridge between the mapping software shooting OSC messages and this something will make commandpost listen the OSC messages.

OR, if someone has something better than commandpost or a way better to listen the OSC messages and execute functions like these, like I did in AHK, I'm happy to listen the tips.

Thx a lot, André Rodrigues