2012-03-19 88 views
4

我在桌面1(OS X Lion)上有一个应用程序/窗口,我想将它移动到桌面3.有关如何操作的任何见解?不是什么大不了的事情,但如果可能的话,我想确保有3个,只有3个可用的桌面。如何使用AppleScript将窗口移动到某个桌面?

+0

通过“桌面”,你是指Lion的版本Spaces? – tkbx 2012-05-12 13:42:28

回答

1

This answer应提供关于如何做到的地方应用的线索,具体...

tell application "System Events" 
    set x to application bindings of spaces preferences of expose preferences 
    set x to {|com.apple.textedit|:4} & x -- Have TextEdit appear in space 4 
    set application bindings of spaces preferences of expose preferences to x 
end tell 

我会想象移动窗口也差不太多。

+3

10.7停止工作。 – user495470 2012-07-15 11:09:15

0

使用键盘快捷键切换到不同的桌面时,移动窗口可以正常工作。

用鼠标单击并按住标题栏,就好像您要在桌面上移动窗口一样,然后按ctrl + 3。必须将Ctrl + 3映射到键盘快捷键界面中的桌面3。 Ctrl +右键两次也可以。然后释放鼠标按钮。

相关问题