Apple mail open at startup closed?

Discussion in 'macOS' started by computerman-8, Dec 19, 2007.

  1. computerman-8 macrumors member

    Joined:
    Oct 11, 2007
    #1
    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.

    Thanks.
     
  2. aeryk71 macrumors newbie

    aeryk71

    Joined:
    Oct 27, 2007
    #2
    Not exactly what you are looking for, but...

    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...)

    Hope this helps,

    Aeryk
     
  3. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #3
    I would do it with an AppleScript. It should be pretty easy.

    There are tons of basic AppleScripting infos online. Look around.

    But basically it would function something like this:

    Tell Finder to open Mail.app.
    Tell Mail.app to Hide.

    Then put the script in as a login item.
     
  4. Mernak macrumors 6502

    Joined:
    Apr 9, 2006
    Location:
    Kirkland, WA
    #4
    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
    Code:
    tell application "Mail" to close every window
     

Share This Page