1

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:

Blockquote error "Mail got an error: AppleEvent handler failed." number -10000

Here's the script: what am I missing here to having this work in Catalina?

tell application "Mail"
set enabled of account "Mac" to false
set enabled of account "Windows" to true
end tell
Cliff
  • 11
  • 1
  • I have the same problem. I have also tried with JXA (Javascript) but the result is the same ("`Error -10000: AppleEvent handler failed.`"). I believe that the problem can only be solved with a new OS version – Marco Caldera Jan 23 '20 at 15:57

0 Answers0