cliclick (short for “Command Line Interface Click”) is a tool for executing mouse- and keyboard-related actions from the shell/Terminal. It is written in Objective-C and runs on Mac OS X 10.5 or later, including OS X 10.8.
For more information, please take a look at cliclick’s homepage
Author: Carsten Blüm, Website: www.bluem.net