The magic behind Castanaut is open source [24022010]
Two years after we released Castanaut, I've decided to open source the little command-line utility that powers keyboard and mouse input within Castanaut.
It might have want of a better name, but it's called osxautomation because that's what I called it. Here's the github repository for osxautomation, with full compilation and usage instructions in the README file.