I'm creating a few screen casts and wanted to exactly center my windows in my screen. Any good way to do this on the Mac? I found an Apple Script example (and a few linked screens) but none of them support centering 'Terminal' vertically (although they do support centering other applications vertically).
|
|
I enjoy using SizeUp to manage windows, one of which is a center on screen option. Good luck. |
|||
|
|
|
Not sure if this might do what you are looking for as well, but Divvy is also a neat piece of software for arranging windows. I suggest you watch the screencast on their website to see if it does what you are looking for, but basically it has a grid where you can change the size and position of the frontmost window. You can also change the grid it displays to have finer control over the size of the windows you are working with. Hope this helps. |
|||
|
|
|
Kevin. I’m the author of the post that you linked to on incrementalism.net. The reason the Terminal window moves to the top is just a bug in Terminal’s AppleScript support. This version does the vertical centering and works around the Terminal bug:
I hope that helps, if you haven’t already paid for one of the other options. I also added a comment with this workaround to the original post. |
|||
|
|
|
Fixes for:
Remarks:
Still, there's a dozen more things that could go wrong. The Dock part isn't really needed if you have hiding always turned on. (But if for example orientation = bottom, you might want to set dth to dth - 4.)
|
||||
|
|
|
If you want to exactly center them (so horizontally and vertically) then you can use the example given in the comments on the site you linked to, and adapt the answer posted to this stackoverflow question. I ended up with this:
Keep in mind that this will center |
|||
|
|
An alternative is MercuryMover. 'Center window' is one of the built-in shortcuts. You can move windows around with shortcuts, define custom positions - and do some more. Hint: try the preference file to define custom pixel numbers other than 1, 10, 100. It is expensive with $20, but pays over time. Anyway, there's an old-school trial… MacUpdate: MercuryMover |
|||
|
|
