How to Create a Minimize All Windows (Win + M) Hotkey for Mac OS X

Posted by The Geek on How to geek See other posts from How to geek or by The Geek
Published on Mon, 01 Jul 2013 15:23:42 GMT Indexed on 2013/07/01 16:24 UTC
Read the original article Hit count: 444

Filed under:
|

Windows users have been able to minimize every window on their desktop ever since keyboards with the Win key started showing up — just tap WIN + M on your keyboard, and every window is minimized. For Mac OS X, it’s not quite as simple.

You can, of course, use the CMD + OPT + H + M shortcut key combination to hide most windows… but that’s a lot of keys to hit at once, and it doesn’t always minimize everything in my experience. So like everything else I wanted from Windows, it was time to figure out how to get it on OS X as well. This method uses QuickSilver to provide the shortcut key trigger — if there’s a better way to do that, please let us know.

Luckily OS X includes a nice scripting platform, and we can use the following script from a helpful person over at SuperUser to make this all happen.

tell application "Finder" to activate tell application "System Events" tell application process "Finder" tell menu bar 1 click menu item "Hide Others" of menu of menu bar item "Finder" click menu item "Minimize All" of menu of menu bar item "Window" end tell end tell end tell

Open up a new AppleScript Editor window and paste in the script from above. Then go to File and Save.

    


© How to geek or respective owner

Related posts about Other

    Related posts about Mac OS X