On 2 Oct 2014, at 18:22, Shane Stanley <
email@hidden> wrote:
Why of course not. That would assume I'd bothered to look in the Dictionary... ;-)
OK, for those who are mouse or trackpad-o-phobic like me, I use this with FastScripts (or you can make a Service), and use the hotkey 'control-cmd-z' to toggle window zooms. In particular, I find it a lifesaver when I unplug the mac from an external display and need to get window bounds back within the visible desktop of the smaller screen.
tell application "System Events"
set frontapp to (name of processes whose frontmost is true) as string
end tell
tell application frontapp
set x to zoomed of window 1
if (x) then
set zoomed of window 1 to false
else
set zoomed of window 1 to true
end if
end tell