Apple Mail 3.5: Changing Mail Server Settings
Apple Mail 3.5: Changing Mail Server Settings
- Subject: Apple Mail 3.5: Changing Mail Server Settings
- From: Aaron Wyatt <email@hidden>
- Date: Wed, 22 Apr 2009 18:48:07 -0400
All-
We're in the process of migrating to a new email server. The script
below is supposed to iterate through all mail accounts and change the
incoming mail server names to the new server name. When you run the
script on 10.5.6, it seems to work-- check Mail prefs: accounts:
incoming server-- until you quit Mail, reopen Mail, and see the
settings are gone. I can't find anything anywhere that indicates how
to trigger an account settings change save action via AppleScript.
This makes me think its a bug?
As you can see below, this should be so simple, and its killing me
that it won't save the settings (no other accounts properties I change
will save either).
Any help will be greatly appreciated.
Thanks,
aaron
--start script
tell application "Mail"
repeat with eachAccount in accounts
set server name of eachAccount to "test.domain.edu"
end repeat
end tell
--end script
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden