Re: Scripting Apple Mail to "Go On/Offline
Re: Scripting Apple Mail to "Go On/Offline
- Subject: Re: Scripting Apple Mail to "Go On/Offline
- From: Michelle Steiner <email@hidden>
- Date: Wed, 14 May 2008 07:37:00 -0700
On May 14, 2008, at 7:29 AM, W. R. Wing wrote:
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.
You run the script again. An account's "enabled" property is a
boolean value (meaning that it is either true or false), and the "not"
operator toggles it from one value to the other.
-- Michelle
--
Rapture is not an exit strategy.
_______________________________________________
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