• 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: Thu, 21 May 2009 15:11:37 -0400

All-

On Apr 23, 2009, at 7:18 AM, John C. Welch wrote:

From what I can tell, the problem is "accounts" is really just a base class,
and not one you should be using directly. Instead of dealing with "accounts"
try working with imap account or pop account for incoming, and smtp server
for outgoing.


When we create accounts, it's "make new imap account..." and "make new smtp
server...", so I imagine you might have to change it that way as well.


So this advice worked great for our IMAP accounts but for the life of my I can get no results for setting properties of SMTP accounts.

This is what I've got:

tell application "Mail"
	repeat with theSMTPServer in smtp servers
		--return properties of theSMTPServer
		tell theSMTPServer
			set server name to "mail.domain.edu"
			set port to 587
			set uses ssl to true
			set authentication to password
		end tell
		--return properties of theSMTPServer
	end repeat
end tell

If I check the properties before and after setting them, the result returned are accurate. However, in Mail.app, the old SMTP settings remain, even if I quit and relaunch Mail.app. It seems to me like there needs to be a trigger to write the changes out to the plist or update the GUI or something.

Any thoughts?

aaron
_______________________________________________
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
  • Prev by Date: Re: Facespan 5 Development Suspended
  • Next by Date: Re: Facespan 5 Development Suspended
  • Previous by thread: Re: Filemaker Import
  • Next by thread: changing the "open with application" value for a file
  • Index(es):
    • Date
    • Thread