• 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: Scripting Apple Mail to "Go On/Offline
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Apple Mail to "Go On/Offline


  • Subject: Re: Scripting Apple Mail to "Go On/Offline
  • From: "W. R. Wing" <email@hidden>
  • Date: Wed, 14 May 2008 10:29:58 -0400


On May 14, 2008, at 9:56 AM, Michelle Steiner wrote:

On May 14, 2008, at 6:43 AM, W. R. Wing wrote:

I want to be able to leave Apple Mail running, but suspend its checking and sending mail, which is what the Go Online and Go Offline menu commands do.

This will achieve the same effect:

tell application "Mail"
	repeat with thisAccount in accounts
		set enabled of thisAccount to not enabled of thisAccount
	end repeat
end tell



How do you turn them back on? "set enabled of thisAccount to enabled of thisAccount" is clearly not the answer.
Thanks,
Bill
=================================================
William R. Wing, PhD. email@hidden 865-574-8839
Network Architect, Oak Ridge National Laboratory
Network Research Group, Computer Sci & Math Div.
=================================================






_______________________________________________
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: Scripting Apple Mail to "Go On/Offline
      • From: "Mark J. Reed" <email@hidden>
    • Re: Scripting Apple Mail to "Go On/Offline
      • From: Michelle Steiner <email@hidden>
References: 
 >Scripting Apple Mail to "Go On/Offline (From: Brian Christmas <email@hidden>)
 >Re: Scripting Apple Mail to "Go On/Offline (From: "W. R. Wing" <email@hidden>)
 >Re: Scripting Apple Mail to "Go On/Offline (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Scripting Apple Mail to "Go On/Offline
  • Next by Date: Re: Scripting Apple Mail to "Go On/Offline
  • Previous by thread: Re: Scripting Apple Mail to "Go On/Offline
  • Next by thread: Re: Scripting Apple Mail to "Go On/Offline
  • Index(es):
    • Date
    • Thread