Re: How to use "Check for new mail" feature
Re: How to use "Check for new mail" feature
- Subject: Re: How to use "Check for new mail" feature
- From: bill fancher <email@hidden>
- Date: Sat, 28 Sep 2002 11:35:04 -0700
On Saturday, September 28, 2002, at 10:57 AM, Ken Scott wrote:
On Monday, September 23, 2002, at 02:24 PM, cricket wrote:
If all you want is for Mail to check all accounts at a specific time
interval, you can already do that in Account Preferences, or via
script:
tell application "Mail"
set fetch frequency to 10 -- Mail will check every 10 minutes
end tell
You can set any integer fetch frequency you want, not just the ones
available in the popup in Mail's Account Preferences.
- cricket
I run this exact script (OK, not exact, I set the time to 2 instead of
10) and each time, Mail.app blows up. I am running OS X 10.2.1. I get
the generic "This application has unexpectedly quit. Other programs
are not affected" dialog box, and Mail is gone.
Any ideas?
Wait until they fix the bug that causes Mail to blow up if you have a
value that's not in the popup and you open Mail's Account Preferences.
Setting to one of the predefined values via script works here, even
with Account Preference open. With "non-standard" periods I suspect
that as long as you don't open Account Preferences the timing for mail
checks is right (didn't bother to test). After crash, the value is
reset to 15 so you'd need to re-run your script to reset the timing.
But be prepared to crash whenever you open Account Preferences.
It seems likely that the code to read the value from prefs and set the
popup control doesn't handle "non-standard" values very well. Someone's
made some invalid assumptions somewhere along the way, e.g. "the value
in prefs will always be one of the predefined values". That's not even
a safe assumption in the absence of AppleScript. The prefs could be
changed in Terminal with
defaults write com.apple.mail PollTime 10
and in fact, that causes the exact same crash.
--
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.