Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a shortcut to minimize all windows like in Windows? In Windows it's Windows Key + D.

share|improve this question

There is no shortcut to minimize all windows of all applications.

  • To hide (all windows of) all applications but the current one, press H, or -click on another application's window. If you H while in an application with no windows up, this will have the effect of hiding all windows.

  • To minimize all windows of the current application, press M, or -click on the minimize box minimize box.
    (In general, the key often means “apply to all”, especially for windows.)

  • To reveal the desktop, press Exposé key if you have one, or use any shortcut set in Exposé Preferences for “Show Desktop”.

share|improve this answer

There's no exact substitute. Mac OS X is designed more around applications with multiple windows each, e.g. in the separation of application switcher (Shift-)Cmd-Tab and window-cycling (Shift-)Cmd-Backtick, while windows is designed more around windows (largely, but the Windows 7 taskbar recognizes related application windows).

You can press F11 (or Fn-F11, depending on the configuration in System Preferences » Keyboard) to move all windows out of the way to get access to the desktop (part of Exposé, configure in System Preferences » Exposé & Spaces), or press Cmd-Opt-H to hide all applications but the currently active one. To minimize the currently active application's windows, press Cmd-Opt-M, or select Window » Minimize All while keeping Opt pressed.


The following AppleScript hides all applications but one -- it doesn't seem to be possible to hide all of them.

tell application "System Events" to set visible of every application process to false

The following AppleScript should minimize all windows. It can be a real pain to restore them though.

tell application "System Events"
    repeat with p in every application process whose visible is true
        click (first button of every window of p whose role description is "minimize button")
    end repeat
end tell
share|improve this answer
    
About the second Applescript: in iTunes 10 button 3 is close. It could be better to tell application ␣ to set miniaturized of windows whose miniaturizable is true to true (or collapsed for Finder). – user495470 Apr 3 '11 at 20:14
    
@Lri Have you tested that? I tried it but couldn't get it to work. An application process' windows don't have these regular window properties. – Daniel Beck Apr 3 '11 at 20:20
    
You'd have to convert that list of application processes to applications first. (Or find some other way to get the open applications.) – user495470 Apr 3 '11 at 20:33
    
@Lri Tried that via the application file, but didn't work. I don't like the button 3 solution either, but it's the only think that worked. (p as application) doesn't work either. – Daniel Beck Apr 3 '11 at 20:42
    
Convert the application file (or file) from alias to text first. – user495470 Apr 3 '11 at 20:47

Could also be useful: What are the differences between minimizing and hiding an application? - Apple - Stack Exchange.

Another Applescript for minimizing all windows:


tell application "System Events"
    set procs to file of processes whose visible is true
end tell
repeat with proc in procs
    set proc to proc as text
    try
        tell application proc to set (miniaturized of windows whose miniaturizable is true) to true
    end try
end repeat
tell application "Finder" to set collapsed of windows to true
share|improve this answer
    
Odd. Tried that (or at least similar), didn't work for me. Much nicer than click button 3. – Daniel Beck Apr 3 '11 at 21:09

There is no standard way to do this. I double checked on Mavericks and El Capitan, one of the following three ways will work:

  1. H and then M
  2. fnF11
  3. F3

using the first method, all windows will be hidden. For method 2 and 3, all windows are hidden temporarily -- if you click on any app, then all windows will come back.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.