This is super cool! I got it to work on three of my seven email accounts in Apple Mail. Then I received this error:
error “Mail got an error: List is empty.” number -50
It would be great if there was a way to run the script again and have it skip the accounts already setup.
I’m impressed who it ran and setup the three that it did. Nice work!