Unfortunately, Stickies.app is not directly scriptable with
Applescript, so there is nothing more advanced than simulating
keystrokes that you can do to control it. But pressing ⌘M is quite
easy. To do what you described here, open Script Editor and save the
following as a new script:
tell application "Stickies" to activate
tell application "System Events" to keystroke "m" using {command down}
However, if you are using 10.5 and want to upgrade to a more robust,
but still really easy and accessible method of keeping track of your
to do items, you might try the freeware applications Anxiety (http://
anxietyapp.com/) or CheckOff (
http://www.checkoffapp.com/).
Another nice possibility is the free To Do widget (http://
todo.philipefatio.com/). I personally like it better than Anxiety,
but since it lives in the Dashboard you might find it changes your
workflow a bit more than Anxiety or CheckOff from what you are used to
using Stickies
You could also start using the "Create iCal To Do" action for
Quicksilver to make to do items. These to do items will appear in
Mail, iCal, Anxiety, CheckOff, To Do widget, and any other application
that uses 10.5's shared database to track to do lists, etc. The
"Create iCal To Do" script is posted in the thread "A collection of
Applescripts and actions for Quicksilver" which is pinned to the top
of this forum.
If you are running 10.4 or earlier, Do It (
http://www.jimmcgowan.net/
Site/DoIt.html) will work very well for you, and you really should
check it out.