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: "Mark J. Reed" <email@hidden>
- Date: Wed, 14 May 2008 10:38:02 -0400
On Wed, May 14, 2008 at 10:29 AM, W. R. Wing <email@hidden> wrote:
> How do you turn them back on? "set enabled of thisAccount to enabled of
> thisAccount" is clearly not the answer.
The script as given will toggle between enabled and disabled.
The phrase "not enabled" isn't the value of the flag; it is the
operator "not" applied to the current value (which is stored in the
property "enabled"). If "enabled" is false, then "set enabled to not
enabled" will set it to true; if "enabled" is true, then "set enabled
to not enabled" will set it to false.
--
Mark J. Reed <email@hidden>
_______________________________________________
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