【问题标题】:you can use Control+⬅️ to option desktop on mac . but is there a way to creat a new desktop by applescript?您可以使用 Control+⬅️ 在 mac 上选择桌面。但是有没有办法通过applescript创建一个新桌面?
【发布时间】:2016-01-05 19:49:39
【问题描述】:

您可以使用 Control+⬅️ 在 Mac 上选择桌面。但是有没有办法通过applescript创建一个新桌面

【问题讨论】:

  • 我不太明白你在问什么。你能再试一次吗?
  • 这些问题针对“空间”以及如何自动创建新空间。 AFAIK 没有机会...这里有一些关于空间的未解决问题!

标签: macos applescript


【解决方案1】:

this post 的帮助下,这对我有用:

do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control"

tell application "System Events" to tell process "Dock" to click button 1 of group 1

do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control 1"

如果要激活新桌面:

do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control"

tell application "System Events" to tell process "Dock"
    click button 1 of group 1
    click last button of list 1 of group 1
end tell

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2019-12-29
    • 2014-01-31
    • 2020-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多