Disable that annoying OSX dashboard.

I finally got around to figuring out how to disalbe the OSX dashboard. It was actually very simple and can be done from the terminal. I wrote a quick applescript to enable and disable the dashboard in case anyone would like to use that. It is very simple and you can just run the shell commands by hand if you wanted to. This is old news in the OSX world, but useful none the less.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
set question to display dialog "Do you wish to start or stop the dashboard?" buttons {"Start", "Stop"} default button 1
set answer to button returned of question
 
if answer is equal to "Start" then
	do shell script "defaults write com.apple.dashboard mcx-disabled -boolean NO"
	do shell script "killall Dock"
	display alert "Dashboard has been started"
end if
 
if answer is equal to "Stop" then
	do shell script "defaults write com.apple.dashboard mcx-disabled -boolean YES"
	do shell script "killall Dock"
	display alert "Dashboard has been stopped"
end if
Be Sociable, Share!

1 Comment

DaveAugust 3rd, 2011 at 2:24 pm

Awesome work. Three thumbs up!

Leave a comment

Your comment