How can I move/resize windows programmatically from another application?
问题 I know, that I can use Apple Event Object Model for moving and resizing windows of Cocoa applications. But what can I use for Carbon applications? 回答1: Same thing. You can use Apple Events on any scriptable application, and Apple Events and scriptability are a lot older than Carbon. 回答2: Peter was right, you can access to bounds of any window using the following AppleScript: tell application "System Events" set allProcesses to application processes repeat with i from 1 to count allProcesses