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


Click here to return to the 'Create a keyboard shortcut for the maximize button' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a keyboard shortcut for the maximize button
Authored by: sabi on Jun 05, '06 02:43:34AM
Here's a script that works a bit more reliably (tested it in Safari, Finder, Script Debugger, VLC, ...). It matches the window more accurately, not grabbing floating windows, and matches the button more accurately—in some apps, the zoom button is button 1.

tell application "System Events" to click (first button whose subrole is "AXZoomButton")
of (first window whose subrole is "AXStandardWindow")
of (first process whose frontmost is true)
(The above should all be one line; I just split it for readability.)

[ Reply to This | # ]