Xcode, or any Apple app for that matter, has a poor implementation of window stacking and default window placement. So I wrote an AppleScript that will stack Xcode windows. It would be fairly easy to adopt it to another application, but each target will have a different way of getting the list of windows to stack. For example, this script stacks only windows with names matching source documents.
This script is geared towards a single monitor, but will handle the monitor changing resolution. I have a laptop, but I often plug in an external monitor, and this will dynamically adapt. If you have multiple monitors, you could hard code the usable area you want the windows to stack in. If you know a way to get the dimensions of just the main device in AppleScript, post it.
This script stacks in a number of columns, not just one. It gives priority to a minimum window width, and figures out from there how many columns to make. The actual window width is the calculated from the number of columns, but that could be skipped if you prefer a fixed window width.
Here's the script: In Xcode 3, it is easy to tie a script to a command key using Edit User Scripts. In earlier versions, it took a little more trickery, but I am guessing there is already a tip for that. I would prefer that a variant of this script run whenever a new window is opened, and automatically stack that one window, but I have not figured that out yet.
[robg adds: I haven't tested this one.]
This script is geared towards a single monitor, but will handle the monitor changing resolution. I have a laptop, but I often plug in an external monitor, and this will dynamically adapt. If you have multiple monitors, you could hard code the usable area you want the windows to stack in. If you know a way to get the dimensions of just the main device in AppleScript, post it.
This script stacks in a number of columns, not just one. It gives priority to a minimum window width, and figures out from there how many columns to make. The actual window width is the calculated from the number of columns, but that could be skipped if you prefer a fixed window width.
Here's the script: In Xcode 3, it is easy to tie a script to a command key using Edit User Scripts. In earlier versions, it took a little more trickery, but I am guessing there is already a tip for that. I would prefer that a variant of this script run whenever a new window is opened, and automatically stack that one window, but I have not figured that out yet.
[robg adds: I haven't tested this one.]
•
[7,135 views]

