"I'd like to run an Applescript to open "System Preferences > Internet Accounts" then unselect "Mail" from each of my accounts.
How can this be done with Applescript? BTW, the only code I've figured out so far is the following:
(BTW, the reason is that when my Apple Mail crashes, which unfortunately is fairly often, this is the only way to get it to open again)"
How can this be done with Applescript? BTW, the only code I've figured out so far is the following:
Code:
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preferences.internetaccounts"
end tell
(BTW, the reason is that when my Apple Mail crashes, which unfortunately is fairly often, this is the only way to get it to open again)"
Last edited by a moderator: