title: Simple AppleScript to enable one macOS Mail account, disable another?
body: <p>I have used a simple AppleScript that toggles between active and inactive macOS Mail accounts that has worked peachy up until macOS 10.15 Catalina. I generally trigger this through the Script Menu to hide one account and enable another, but have also tried by simply opening and running it. Either way, it's now failing with the error: </p>
  
  <blockquote>
    <p>Blockquote error "Mail got an error: AppleEvent handler failed." number -10000</p>
  </blockquote>
  
  <p>Here's the script: what am I missing here to having this work in Catalina?</p>
  
  <pre><code>tell application "Mail"
  set enabled of account "Mac" to false
  set enabled of account "Windows" to true
  end tell
  </code></pre>