Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Manage automatic mail checking via AppleScript Apps
Eudora is a wonderfully flexible email program. It allows me to manage eight email accounts, and to check them for new mail every few minutes. Apple Mail can do the same. But there are some times when I don't want my email program to do this. One case is when I am trying to debug some problem that requires rebooting the Mac frequently. Another is when I don't want it to start up my Internet connection.

Now, I could fix this by going through all my personalities and unchecking "Check mail every x minutes" for each one. Then I would have to go through and check them all again when I wanted my mail to be checked automatically again. Too hard! AppleScript to the rescue...

The AppleScript below will tell Eudora (or Apple Mail) to check for new mail at time intervals you specify. Paste it into a Script Editor window, then Save As an application. You can either leave it on your desktop or put it into the Script Menu where it is convenient but out of the way. Now, mail will not be checked when the email program is started. When you want it to check for new mail regularly, run the script. This asks you how often to check for new mail, then tells the email program to check for new mail at that interval.
-- Manually check for new mail at regular intervals.
-- David Morrison, 25 December 2003
--
on run

  set check_interval to text returned of ├éČ
   (display dialog "How many seconds between checks?" default answer "600")

  repeat
    tell application "Eudora"
      connect with checking
    end tell
    delay (check_interval as number)
  end repeat

end run

on quit
  continue quit
end quit
Note that for each personality, you must have checked the box "Check mail on manual checks." If you want any personalities to be exempt from this, uncheck the box. This can also be used for Apple Mail. Change the tell ... end tell section to:
tell application "Mail"
  check for new mail for all
end tell
In the General Preference pane, set "Check for new mail" to "Manually." For each account, uncheck "Include when automatically checking for new mail."
    •    
  • Currently 3.25 / 5
  You rated: 4 / 5 (4 votes cast)
 
[9,416 views]  

Manage automatic mail checking via AppleScript | 5 comments | Create New Account
Click here to return to the 'Manage automatic mail checking via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Manage automatic mail checking via AppleScript
Authored by: robJ on Mar 17, '05 12:52:12PM
In Eudora's "Task Progress" window, there's a drop-down menu (icon in lower left corner) that allows the user to take Eudora offline (never check). This can be toggled manually or with the following script.
tell application "Eudora"
	if setting 84 is "n" then
		set setting 84 to "y" -- offline
	else
		set setting 84 to "n" -- online
	end if
end tell
Note: If toggled via the script, Eudora's UI does not reflect the change. I don't know how to overcome this.

-- Rob

[ Reply to This | # ]
Manage automatic mail checking via AppleScript
Authored by: meikokun on Mar 17, '05 01:01:28PM

erm... why not just NOT have the app running?
*confused in Sweden*



[ Reply to This | # ]
Manage automatic mail checking via AppleScript
Authored by: szabesz on Mar 18, '05 06:02:33AM

...cos u want to use the app without the automatic e-mail checking. See the intro of the hint...



[ Reply to This | # ]
Manage automatic mail checking via AppleScript
Authored by: meikokun on Mar 23, '05 07:05:57PM

ok, I didn't pick that up from the first time I read it - I just assumed it was auto-launch, then auto download.
Also, one of the nice things about Mail is that there's a global "work offline" mode available from the menu bar, in addition to the individual settings - I guess there isn't such a mode in Eudora. Sometimes you don't appreciate things like that til you need em, eh? ;)
cheers
*less confused but happy to be using mail*



[ Reply to This | # ]
Manage automatic mail checking via AppleScript
Authored by: cooco007 on Dec 10, '08 01:47:08AM
yeah!!Eudora is a wonderfully flexible email program. second!

[ Reply to This | # ]