OSX Lion AppleScript : How to get current space # from mission control?

前端 未结 7 1093
悲&欢浪女
悲&欢浪女 2020-12-07 11:09

I\'m trying to figure out how to get the current space # from mission control. Source would be helpful, but more helpful would be info on how to figure this out myself. I\

7条回答
  •  無奈伤痛
    2020-12-07 11:56

    I wrote an app - does it work for you?

    Change Space.app

    The keys to make it work are control-shift and the arrow keys, although this may be fixable if you are stuck on ALT.

    Make sure you have 9 spaces (desktops) set up before you start, and you'll need to change the default ctrl-up and ctrl-down key bindings in System Preferences to something else (in Keyboard -> Keyboard Shortcuts -> Mission Control : Mission Control and Show Desktop).

    On the first run it it will cycle through your desktops to enumerate them when you first change space.

    Then you should be able to change between desktops like in a 3x3 grid.

    There may be a few wrinkles, but it's basically functional, at least for me.

提交回复
热议问题