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

@ 2013/07/02
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.

No comments available.