Script to open mail at login and then hide app

I've been messing around with apple script lately and found it useful in being able to do various tasks etc, I've even written a few basic scripts myself
I use my computer primarily at home with a wireless network and i just leave my mail app open to check my mail more easily. I have the program set up to open at login, which works and then leaves the inbox window open.
I'm wondering if there is a way with apple script to tell mail to open at login and then hide it self once it's open so that it seems like it opened in the background.
any ideas?

Have you considered using the hide option in 'login items' tab in system preferences/accounts?
Go to system preferences, then to accounts, and then use the 'login items' tab with your account name. Now you can specify Mail to open as you login and then there is an option for you to hide Mail once it opens.
The net effect is that you will have Mail open once you login and then have it hide itself after login.
Hope this helps.
eviscerationer

Similar Messages

  • TS3274 I can't delete mail nor can i open the Settings. It opens for a sec and then closes. any ideas?

    Mail closes when I attempt to read or delete messages
    I can't open the Settings. It opens for a sec and then closes. any ideas

    First try to reset your device by holding the home and power button for about 30 seconds until you see a silver apple, after that let go of the buttons and let your device start up normally. This will not remove any settings or information from your device.

  • How to open a pdf file and then attach it with images

    I am new to Indesign Server.
    I'm currently working on a pdf.
    I have a white blank pdf template.
    that I want to attach/glue it with images.
    How to open a pdf file and then attach it with images.
    Please, help me.
    Thanks.

    First step would be to make yourself familiar with InDesign desktop version.
    Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
    Then try to automate your steps with scripting (see scripting docs or forum)
    If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
    If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
    A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
    Dirk

  • TS3899 I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any sugges

    I upgraded to IOS 6, I am unable to get into my Yahoo mail.  It accepts pw, and pops up and tells me how many e-mails I have and then goes right back to the sign on screen. verified that I can get in from laptop & wireless is functioning.any suggestions?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • I have just updated my iPad to IOS 8.1.3 when I now try to open the emails nothing comes up and then the app crashes and returns to the home page. What should I do?

    I have just updated my iPad to IOS 8.1.3 when I now try to open the emails nothing comes up and then the app crashes and returns to the home page. What should I do?

    Since yesterday morning about 11:00 I have been having TERRIBLE email problems on this iPad 3G. Email comes in (I hear the sound) but nothing displays -- no folders, no content, no nothing in e-mail. The blank email screen shows up and then disappears after about 10 seconds, taking me back to the Home Screen.
    Right now, the only way I can see email on this device is to log onto AOL via the AOL app.
    I have been doing a lot of online reading about the problem. It has to do with iOS 8.1.3 and it affects older iPads and iPhones. I'm having no problems on my iPod touch, which -- fortunately -- is so old it cannot update its iOS 6.
    I waited to update the iOS on this iPad until iOS 8 was "mature." That was about 2 weeks ago.
    Anybody know know if Apple is aware? working on a solution?

  • My homepage is Yahoo.ca and used to appear when I opened Firefox. All of a sudden it doesn't although my preferences say that it should. To get to Yahoo, I have to open a "new Page" and then Yahoo appear as a tiny page which I then have to enlarge.

    I am not so computer literate as to add much more information than I have already. Unfortunately. One day Firefox opened with my homepage and then, later in the afternoon, it didn't. I had a younger person check it out but she couldn't figure out why the change.

    I am not so computer literate as to add much more information than I have already. Unfortunately. One day Firefox opened with my homepage and then, later in the afternoon, it didn't. I had a younger person check it out but she couldn't figure out why the change.

  • When I try to open Adobe Reader, it just opens a gray page and then closes by itself. This also appl

    When I try to open Adobe Reader, it just opens a gray page and then closes by itself. This also applies to any pdf files I try to access; they'd all follow the same pattern: Gray page-->automatically closes after 2 to 3 seconds time. I have tried accessing the Eula.exe via C:\Program Files (x86)\Adobe\Reader 11.0\Reader, however, the only available button for me to click is the "Decline" button and not the "Accept" license agreement. Please help!
    THanks

    Thanks for your help!!!!

  • Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library.

    Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library. I can restore the artwork (and make my apple tv see the movie exists as well) by going into the movie library and clicking on each movie by hand, slecting get info, and then selecting enter. Now doing this 10 times in 20 days was fun and all BUT I would really like to automate the process so everytime itunes screws it up I can fix it easier.
    I saw this example of an itunes script that restores artwork for music
    tell application "iTunes" set theSelection to selection repeat with i from 1 to count of theSelection tell (item i of theSelection) set artworkCount to count of artwork repeat artworkCount times set theArtwork to data of artwork 1 delete artwork 1 set data of artwork artworkCount to theArtwork end repeat end tell end repeat end tell
    but I need to tweak this to fit my needs for simply clicking the "get info" button and "enter" in the movie library rather than all the stuff this guy has listed. Any ideas or help on writing this? Thanks.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.

    Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.
    I've tried my best to troubleshoot. . . opening in safe mode nothing seems to work.
    In the problem report, this is the error that stood out:
    Crashed Thread:  8  Dispatch queue: com.apple.iad.iadidmanager
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000090

    Hi there navicin79,
    You may find the troubleshooting steps in the articles below helpful. The first thing I would try is reinstalling iTunes as outlined in the first article.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    -Griff W. 

  • My ipod app no longer works. Everytime I go to open the ipod app it stays open for a second and then shuts down. I am not able to get anything to play either through the standard ipod controls or the multitasking control panel. I'm sure there will be an u

    my ipod app no longer works. Everytime I go to open the ipod app it stays open for a second and then shuts down. I am not able to get anything to play either through the standard ipod controls or the multitasking control panel. I'm sure there will be an update soon to correct this, i just wanted to see if anyone else was having the same problem.
    wen i open ipod in my iphone ,, it gets stuck ,, and get backs to the menu ,,, and doesnot play anything ,, not video nor song

    If your phone is not officially unlocked by the carrier in the UK, you can not use the phone using another SIM, unless you modify the software or the SIM, which can lead to unexpected results, such as non functioning apps.
    Unauthorized modification of iPhone OS has been a major source of instability, disruption of services, and other issues
    Problems resulting from those modifications can't be discussed in these forums, due to the Terms of Use

  • Itunes store won't open.  It tries and then stops. no error messages. I've reinstalled and same thing happens. any ideas?

    itunes store won't open.  It tries and then stops. no error messages. I've reinstalled and same thing happens. any ideas?

    Hi Guys:-
    If this SAME problems is effecting us all then suspect its not IPS problem as we all get problem at 995.6MB.
    I would think that there is some kind of software conflict.  If we all having this problem just think of how many users have the same but are not on this discussion board, bet you its 100s and 100s.
    Not possible for me to visit store now but will monitor your responce's. 
    Good luck guys, lets make um give us a fix:- I will call them tomorrow and see what they say:-  should point support to this Discussion page and they can answer us !
    Cheers and good luck also

  • When i open itunes its normal and then out of nowhere it says "itunes has stopped working" and i have to click 'close program'. help?

    when i open itunes its normal and then out of nowhere it says "itunes has stopped working" and i have to click 'close program'. help?

    Having the same issue here....a quick fix is to just minimize the window, and immediately maximize it.  It will now fit the screen.  Trouble is, after you close it, you'll have to do it again when you re-start itunes.  The good news is it takes all of about 2 seconds.  Apple should fix this.  Should.

  • Application opens for 1 second and then shuts down

    Obama2012 app opens for 1 second and then shuts down.

    I have deleted it 3 times and reinstalled 3 times but the app continues to open briefly and then close

  • I have Pandora and Slacker Radio apps installed on my ipod touch. When I touch the icon to play it, it opens for a second and then closes. Does anyone know how to fix this??

    I have Pandora and Slacker Radio installed on my ipod touch. When I touch the icon to open these, it opens for a second and then closes. Does anyone know how to fix this?

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Purchase/install any new app
    - The remaining items of:
    iOS: Troubleshooting applications purchased from the App Store

  • Firefox running weird !! Whenever I click on something like bookmarks, it acts like it is going to open, blinks real fast, and then doesn't open.

    Whenever I click on something like bookmarks, it acts like it is going to open, blinks real fast, and then doesn't open.

    See [[Secure Connection Failed]]
    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

Maybe you are looking for

  • HP OfficeJet Pro L7680 - New ink cartridges saying "Empty"

    I have a HP OfficeJet Pro L7680 that has two ink cartridges that suggest they are empty, although they are brand new from HP. These are replacement carts, not the original. I am not sure how to diagnose the problem since the cartridges are leaking co

  • Listner and "Message not Found" Error

    I tried to find other info on this, but i couldn't, so any information would be very helpful. whenever i run: lsnrctl start i get these errors:LSNRCTL for Linux: Version 8.0.5.0.0 - Production on 17-AUG-99 22:58:55 (c) Copyright 1997 Oracle Corporati

  • Streaming a webcam to a remote webpage

    I am an amatuer web programmer. I manage our website for my restaurant. www.KitesLive.com I have been trying to get a stable streaming webcam on our site for some time without having to pay some ridiculuos amount to a third party provider. I hope thi

  • Need FDGRV (Planning Group) from LFB1 as attribute

    Hello, I am creating freight separation reports and have run into problem.  Initial specs were to differentiate freight vendors by using different vendor party.  Purchasing dept had determined that all freight vendors would we within a set range.  No

  • ACR 6.7 an CS5

    Hi, to open the RAW-Files of my Nikon D800 i must install the ACR 6.7 on my CS5. When i want to use the AdobePatchInstaller.exe i become a error message. in german: "Update kann nicht angewendet  werden" - its like: Update can not used. The Adobe Sup