Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Toggle Spaces on and off via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Toggle Spaces on and off via AppleScript
Authored by: mark hunte on Aug 01, '08 09:35:11AM
You do not need to read and write to the Plist file.


tell application "System Events"
	tell expose preferences
		tell spaces preferences
			set spaceset to item 1 of (get properties as list)
			set spaces enabled to (not (spaceset as boolean))
			get properties
		end tell
	end tell
end tell

---
mh

[ Reply to This | # ]

10.5: Toggle Spaces on and off via AppleScript
Authored by: jhlee on Aug 01, '08 12:14:48PM

Thanks you so much. That's what i was looking for.



[ Reply to This | # ]