Go Back   The macosxhints Forums > Working with OS X > OS X Developer



Reply
 
Thread Tools Rate Thread Display Modes
Old 10-21-2008, 07:48 AM   #1
Elijah M
Prospect
 
Join Date: Oct 2008
Location: Del Boca Vista, FL
Posts: 2
Need help with automatic backup of gMail to Mac Mail with Apple Script

Hello everyone,

Long time blog reader, first time poster here. I use Gmailís web interface as my primary mail client, and I back it up to Mac Mail at home using iMap. Currently, I do this by manually running the mail application and then quitting it after itís downloaded all mail. I tried setting up an Apple Script that would do this for me at start up, but Iím a bit wet behind the ears in that area, and I havenít been able to make it work.

I would prefer that I could make Mail download all my messages every time I shut the computer down (since CPU and Internet bandwidth are otherwise unused at that point), but at startup is fine too.

Any help (or additional advice regarding peripheral issues you may have experienced with a similar task) is much appreciated. Thanks!
Elijah M is offline   Reply With Quote
Old 10-21-2008, 08:11 AM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,291
Note that to run an app (e.g. Mail) at login, you just add it to the Login Items list in the Accounts Preferences.
Then you can just quit Mail whenever you want (or leave it running).
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 10-21-2008, 09:09 AM   #3
Elijah M
Prospect
 
Join Date: Oct 2008
Location: Del Boca Vista, FL
Posts: 2
Quote:
Originally Posted by hayne
Note that to run an app (e.g. Mail) at login, you just add it to the Login Items list in the Accounts Preferences.
Then you can just quit Mail whenever you want (or leave it running).

Is there any way I could get it to quit automatically as soon as itís done downloading mail(I know thatís a minor point, but anywayÖ); or better yet, to do this at shutdown rather than startup? Possibly by creating a script that downloads all iMap mail and then shuts down the computer? Like I said, Iím with behind the ears with regard to Apple Script, so bear with me.

Previously, I tried creating an Apple Script that downloaded all mail and then quit. I then added the script to Login Items, but it didnít work. I donít know whether thatís because I created a non-workable script, or if scripts simply canít be added to Login Items.
Elijah M is offline   Reply With Quote
Reply

Tags
apple script, gmail, imap, mail

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.