Doesn't OSX have something equivalent to AutoHotkey? Also, last I heard there was an AHK version for .NET, maybe OSX can use that via the Mono project. That might be a long shot though.