For those too lazy to type in that script, click below:
:)
On Nov 16, 2006, at 11:39 PM, Dan Lowe wrote:
On Nov 16, 2006, at 6:38 PM, Jay Soffian wrote:
Oooh, that's a good idea. I didn't realize Applescript had that control over windows. A little googling and:
http://www.bigbold.com/snippets/posts/show/1067
I'll make a few options for various window sizes I use commonly and just toss them into my personal bundle.
This seems to work as a vertical maximize for me. Preserves the horizontal position and size, maximizes only vertically:
#!/bin/sh
/usr/bin/osascript -e ' set screenHeight to word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height") as number
tell application "TextMate" set theBounds to bounds of front window set xPosition to item 1 of theBounds set windowWidth to item 3 of theBounds set bounds of front window to {xPosition, 0, windowWidth, screenHeight} end tell '
I bound it to ctrl-cmd-Z.
-- The best way to predict the future is to invent it. -Alan Kay
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate