I was wondering if there was any script or anything that could open Apple Mail at startup without opening the main window? I just want it to be closed on the dock to keep an eye on new emails.
Assuming you are running Leopard, you could set the mail app to open in a different space. That should open it automatically, but not on space 1... (Although I have not tested to verify...)
You could just add Mail to login items and change the option to hide to true (check the box) if you don't mind it just being hidden in the background. Or if you do go the Applescripting route, you could you something like