I need to make an AppleScript that will disable 2 email accounts in Mail.app. I am not too sure where to go with AppleScript to pull this off.
I looked in the Mail.app "dictionary" for AppleScript and there is a property of an account for enabled or not, but I do not know how to tell Mail to disable it if it is enabled and vice versa.
I'd be very appreciative if someone could point me in the right direction.
The reason I need this is because if Mail downloads mail from my pop3 account my blackberry won't download the email, even though Mail is set to not do anything to the email on the server.
I'd like to be able to email an account I setup and when mail arrives a rule runs which runs my applescript to disable my primary email account.
Convoluted? Yes, but a fun project nevertheless.