How can I programmatically move one Terminal.app window to another space?
问题 If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space? I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks. (Note this is to move only one window of an application not all windows.) 回答1: Using private calls in Objective-C/C, unofficially listed here #import <Foundation/Foundation.h> typedef int CGSConnection; typedef int CGSWindow; extern OSStatus