May 05, '05 10:05:00AM • Contributed by: jdsmith
It is fairly inelegant in that it requires you to hard-code your vertical display height (I couldn't find a simple way to query for that, the number is for a 15" PowerBook). It works by finding the current application, coming up with an appropriate Y-size, and setting the foremost window bounds with it.
Sadly, every app seems to mean something different by the window bounds, rather than simply the outside bounds of the window and titlebar. In fact, the Finder is the biggest offender -- the bounds mean something different depending on whether the toolbar is visible or not. I have explicitly coded around the Finder's non-consistent behavior, but other apps may have the same flaw.
To bind it to a keystroke, I use a QuickSilver trigger to run the script, after spending many wasted hours trying to understand why this hint wouldn't work (until I read the comments). I find it most useful in Mail new message windows, Finder windows, and Terminal windows (above all). It doesn't work for X11 windows (which I'd love), and a few non-Apple apps I tried (does nothing for PowerPoint, and messes Word's windows up). I suspect something similar could be done for horizontal or full screen maximize.
Comments, suggestions and improvements welcome.
