如何使用AppleScript将窗口移至特定桌面?

chi*_*ior 5 applescript

我在桌面1(OS X Lion)上有一个应用程序/窗口,我想将其移至桌面3。关于如何执行此操作的见解?没什么大不了的,但是如果可能的话,我想确保只有3个台式机可用。

Phi*_*gan 3

这个答案应该提供有关如何进行地点申请的线索,特别是......

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
Run Code Online (Sandbox Code Playgroud)

我想移动窗户并没有太大的不同。