Script to click app on Menu Bar on Mavericks I use an application called NoSleep.  Technically it is a Kernel Extension.  It is used to prevent a Mac (OSX Mavericks) from going to sleep when you close the lid.

https://code.google.com/p/macosx-nosleep-extension/

NoSleep works fantastically well.  I only have one issue.  I want the NoSleep feature ON when the computer boots and performs auto login.  By default NoSleep is running but in an  off state.  To toggle on, you simply click (once) the NoSleep icon on the system bar (up where volume, dropbox etc shows up), upper right.

I would like a simple AppleScript that I can run at startup as an App using System Preferences/ Users and Groups / login items.  That just clicks that icon.
Although this is not an ApplesSript (and I would still like to know how to resolve the question via clicking etc) there is another way to skin the cat.  The application can be installed with a command line interface.  If installed: you can turn NoSleep on as follows:

NoSleepCtrl -a -b -s 1,1


That is easy enough to script that I can even do it.