• 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: "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

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>)
 >Re: Scripting Apple Mail to "Go On/Offline (From: "W. R. Wing" <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