I am a AppleScript newbie, so please help a brother out!
I need a simple script that will toggle an existing email account on and off. I cannot seem to get anything to work.
Could anyone provide a snippet?
I am a AppleScript newbie, so please help a brother out!
I need a simple script that will toggle an existing email account on and off. I cannot seem to get anything to work.
Could anyone provide a snippet?
Hi,
try this
tell application "Mail"
tell account "myAccount" to set enabled to not (get enabled)
end tell
Awesome. Worked like a charm! Thank you!
Isn’t that typical of Apple, Stefan? What an awkward construction.
English like, it is.