Applescript to turn off Mission Control in OS X 10.7 I found most of the below on https://discussions.apple.com/thread/3046230?start=0&amp;tstart=0, but I believe it relates to OSX10.6 (or earlier) given that Mission control seems to have replaced expose and spaces.

I am looking to modify it to turn off all Mission Control functionality, if possible.

I tried to modify it to tell "Mission Control" preferences but couldn't even get that far (One of the errors was "Expected end of line but found application constant or consideration"), so hopefully someone with a better grasp of Applescript / the objects available in OS X 10.7 can help me out.

do shell script "defaults write com.apple.dashboard mcx-disabled -boolean YES"
do shell script "defaults write com.apple.dock workspaces -bool NO"

tell application "System Events"
      tell expose preferences
            tell spaces preferences
                  set spaces enabled to false
                  set spaces enabled to true
                  set spaces enabled to false
            end tell
      end tell
end tell

quit application "dock"
This disables the main Mission Control screen (⌃↑), but not spaces or the application windows screen (⌃↓). It also makes switching to a space with windows for an application stop working.

defaults write com.apple.dock mcx-expose-disabled -bool true
killall Dock


You can disable Exposé and Spaces by removing or disabling Dock. But it also disables full screen windows, the Notification Center sidebar, the application switcher, Launchpad, and Dashboard, and makes the desktop backgrounds gray.