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

RusselM

macrumors newbie
Original poster
"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:
Mmmm... not sure.

However, I'd be more inclined to spend the time trying to figure out why Mail keeps crashing for you. What have you tried to solve that so far?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.