• 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
Setting IMAP server in Mail does not stick...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting IMAP server in Mail does not stick...


  • Subject: Setting IMAP server in Mail does not stick...
  • From: RJH <email@hidden>
  • Date: Wed, 22 Apr 2009 15:23:20 -0400

So I'm trying to write a script which will change the IMAP server that an account points to. 

So here it is. 

tell application "Mail"


repeat with eachAccount in accounts


display dialog (user name of eachAccount) as text
set whichaccount to the user name of eachAccount as text


set whichaccount to the user name of eachAccount as text


if whichaccount = "thatuser" then


display dialog (server name of eachAccount) as text
set server name of eachAccount to "test.bc.edu"
end if

Trouble is is when I restart mail it is back to the original setting. What am I missing here?

Thanks
Robert


------------
RJH Web Consulting
Email: freelance at bostonmacosx dot dyndns dot org
Website: http://rjhcc.dyndns.biz
LinkedIn: http://www.linkedin.com/in/rjherbstzuber

Services: Internet Service Management
  Website Maintenance and Management
  General Consulting Services
  Full Web Application Development
------------




 _______________________________________________
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: Quit application script when closes the window
  • Next by Date: Apple Mail 3.5: Changing Mail Server Settings
  • Previous by thread: Re: Quit application script when closes the window
  • Next by thread: Apple Mail 3.5: Changing Mail Server Settings
  • Index(es):
    • Date
    • Thread