I always hide applications instead of minimizing windows:
- Just focusing the application again unhides it
- There is no animation
- When an application has multiple windows, I often want to show or hide them as a group
- I keep the Dock hidden, and it would be easy to forget minimized windows in the Dock
Anyway, here are a few (probably not that useful) scripts for unminimizing windows. You can assign shortcuts to them with an application like FastScripts or Alfred.
This unminimizes all windows of the current application:
tell application (path to frontmost application as text)
try
set miniaturized of windows to false -- most applications
end try
try
set collapsed of windows to false -- at least Finder
end try
end tell
If minimizing to application icons is not enabled, you could also click the last Dock icon:
try
tell application "System Events" to tell process "Dock"
click (last UI element of list 1 where role description is "minimized window dock item")
end tell
end try
This clicks the dock icons of all minimized windows:
tell application "System Events" to tell process "Dock"
click (UI elements of list 1 where role description is "minimized window dock item")
end tell
4In OS X Mavericks (10.9.2), Cmd-Tab to the app that is Hidden (with previous Cmd-H) to restore it. (This doesn't work for Minimized windows.) – Brent Faust – 2014-04-02T03:23:28.087