How to start scripting automation on OS X without AppleScript or Automator?
There is mention in another post which references this somewhat recent and seemingly well documented project BrendanThompson/rb-scpt