Last active
February 18, 2016 20:50
-
-
Save toonn/ab6ac34480911a9895ce to your computer and use it in GitHub Desktop.
Mac os X sorely lacks a vertical maximization feature for windows. I bind this applescript to a trigger with quicksilver as a stopgap measure. I'm not sure where I got this from but probably: http://hints.macworld.com/article.php?story=20050428173653581
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" | |
set {_dx, _dy, _dw, _dh} to bounds of window of desktop | |
end tell | |
tell application "System Events" to tell application "Terminal" | |
tell front window | |
set {_x, _y, _w, _h} to (get bounds) | |
set size to {_w - _x, _dh} | |
set position to {_x, _dy} | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment