如何以编程方式向任务控制添加空间? [英] How can I programmatically add a space to mission control?

查看:31
本文介绍了如何以编程方式向任务控制添加空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个新空间(并且以后也可以删除它),而无需通过标准的任务控制 gui.有没有办法以编程方式做到这一点?通过终端命令、applescript 还是一些可可?

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?

推荐答案

在 ~/Library/Preferences 路径中有一个名为 com.apple.spaces.plist 的偏好 plist.

There is on preference plist in ~/Library/Preferences path named as com.apple.spaces.plist.

你必须添加两个键.

打开 plist,我希望你会了解它.

Open the plist and I hope you will get to know it.

这篇关于如何以编程方式向任务控制添加空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆