I want to create a new space (and also be able to delete it later), without having to go through the standard misson control gui. Is there any way to do this programmatically? Either via terminal commands, applescript or some cocoa?
A mission control center (MCC, sometimes called a flight control center or operations center) is a facility that manages space flights, usually from the point of launch until landing or the end of the mission. It is part of the ground segment of spacecraft operations.
Open Mission ControlSwipe up with three or four fingers on your trackpad, or double-tap the surface of your Magic Mouse with two fingers. Open the Mission Control app, which is in your Applications folder. Press the Mission Control key on your Apple keyboard or Touch Bar.
There is on preference plist in ~/Library/Preferences path named as com.apple.spaces.plist.
There You have to add two keys.
Open the plist and I hope you will get to know it.
...just in case someone finds this via Google
It’s a cinch: when you’re in Mission Control...
Note:If your Dock is on the right, you can access the New Desktop tab from the upper left corner instead.
delay 0.5 -- time to release command if the script is run with command-R
tell application "System Events"
key code 126 using control down -- control-up
delay 1
do shell script "MouseTools -x 1900 -y 60;sleep 1;MouseTools -leftClickNoRelease;MouseTools -releaseMouse"
key code 53 -- escape
end tell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With