Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I found most of the below on https://discussions.apple.com/thread/3046230?start=0&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"
share|improve this question
1  
The first thing that jumps out at me is that you'll want to add quotation marks to the end the first two lines (do shell script "defaults write... YES", e.g.). See if that helps things a bit. –  Nathan Greenstein Sep 21 '12 at 3:47
    
@NathanGreenstein - Hi, thanks, but during debug I had removed these lines and this didn't change the code line it complained about (My changed tell 'tell "Mission Control" preferences, which isn't shown, but was in place of "tell expose...") –  user66001 Sep 21 '12 at 12:04
add comment

1 Answer 1

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.

share|improve this answer
1  
Basically disabling Dock disables everything good in OS X. LOL –  Shane Hsu Jan 22 '13 at 17:26
    
Hi Lauri - I was looking for an applescript to do this. Can you advise on this as well? –  user66001 Jan 26 '13 at 19:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.