Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RusselM

macrumors newbie
Original poster
Oct 10, 2016
1
0
"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:


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:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.