• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Apple Mail 3.5: Changing Mail Server Settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Apple Mail 3.5: Changing Mail Server Settings
      • From: "John C. Welch" <email@hidden>
    • Re: Apple Mail 3.5: Changing Mail Server Settings
      • From: "Jeremy W. Sherman" <email@hidden>
  • Prev by Date: Setting IMAP server in Mail does not stick...
  • Next by Date: Closing Safari JavaScript alerts and other modal windows
  • Previous by thread: Setting IMAP server in Mail does not stick...
  • Next by thread: Re: Apple Mail 3.5: Changing Mail Server Settings
  • Index(es):
    • Date
    • Thread