Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to resize windows to their vertical maximum' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to resize windows to their vertical maximum
Authored by: Jim Jones on Aug 16, '07 04:33:24PM

Because I use a few different external monitors, and sometimes only use my actual MacBook display, I was investigating various ways to query the current display's resolution. But, what I found is that simply setting the resolution to something greater than what you actually have causes the window to have the maximum value regardless of what you set. So, in the script that the OP posted here, I simply set the y resolution to 1200 (the value of my greatest display) and it works regardless of which monitor I am using. In fact, I can drag a window from display to display and run the script and it dynamically changes. Here's the line I changed:

set display_y_size to 1200



[ Reply to This | # ]
Problems with running this script and a saved terminal
Authored by: jayjanssen on Sep 17, '07 06:07:44AM
I got the script to work great. I'm using it with terminal.app, and I usually open my terminals with a .term file. This allows me to open a new terminal every time I double-click the .term (or use Quicksilver).

However, after I run this script on a terminal window, I am unable to open any new .term files until I quit Terminal and restart. I am able to open a new terminal with command-n.

Any ideas? I'm on 10.4.10.

[ Reply to This | # ]