AutomateIt Plugin Developer Guide:
http://automateitapp.com/plugins/automateit-plugin-developer-guide/