Create & Remove Mac Spaces Programmatically without using UI Operations

How should I Programmatically add/remove the spaces found in mission control without using any UI operations or UI tools.

Posted on Jun 5, 2020 12:11 AM

Reply
6 replies

Jun 5, 2020 3:17 PM in response to srikanthLekkala

srikanthLekkala Said:

"Create & Remove Mac Spaces Programmatically without using UI Operations: My requirement is not to kill it. I want to create Spaces programmatically as part of automation process to run different applications in different spaces such that every application runs in a separate space and i also want to delete the space created once the process is done."

-------


Recommend this to Apple:

So, basically, you'd want it look like a checkerboard, correct (squared or rectangular)?


Not a bad idea. Thing is, Apple does not have that option, so recommend it to them:

Provide Feedback Here:

  1. Go Here: Feedback - macOS - Apple
  2. Select: "Feature Request" for the "Feedback Type"
  3. Select: "User Interface" for the "Feedback Area"
  4. Proceed from there as necessary.

Jun 5, 2020 12:34 AM in response to srikanthLekkala

srikanthLekkala Said:

"How should I Programmatically add/remove the spaces found in mission control without using any UI operations or UI tools."

-------


Please Clarify:

Perhaps reword your OP. It doesn't quite make sense.

You'd be using a user interface no matter how the operating is performed.


So Recommend this to Apple.

Use the feedback forums to do so.

  1. Go To: Feedback - macOS - Apple
  2. Choose: "Feature Request" for the "Feedback Type"
  3. Choose: "User Interface" for the "Feedback Area"
  4. Proceed from there as necessary



Jun 5, 2020 12:58 AM in response to srikanthLekkala

srikanthLekkala Said:

"What i meant by 'without using UI Operations' is to achieve this with command line tools."

-------


Thank you for the update.


The best option would be to restart Mission Control.


Use this command in terminal:

killall -KILL Dock


You wouldn't be able to modify the GUI with Terminal, other than resetting it, if there are any issues whatsoever with it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Create & Remove Mac Spaces Programmatically without using UI Operations

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.