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"
do shell script "defaults write... YES"
, e.g.). See if that helps things a bit.