• 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
Re: Apple Mail 3.5: Changing Mail Server Settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Mail 3.5: Changing Mail Server Settings


  • Subject: Re: Apple Mail 3.5: Changing Mail Server Settings
  • From: Aaron Wyatt <email@hidden>
  • Date: Thu, 23 Apr 2009 09:50:58 -0400

John-

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.

--
Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.
(When catapults are outlawed, only outlaws will have catapults.)

Jeff La Grua

Thanks for the tip!  It works:

--start script
tell application "Mail"
repeat with eachAccount in imap accounts
set server name of eachAccount to "test.domain.edu"
end repeat
end tell
--end script

I owe you a burrito.

Thanks again,
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

References: 
 >Re: Apple Mail 3.5: Changing Mail Server Settings (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Apple Mail 3.5: Changing Mail Server Settings
  • Next by Date: get type of selected finder item
  • Previous by thread: Re: Apple Mail 3.5: Changing Mail Server Settings
  • Next by thread: Closing Safari JavaScript alerts and other modal windows
  • Index(es):
    • Date
    • Thread