While implementing the AWS tool that I talked about in the last post - I learned a cool new Applescript technique to unminimize minimized windows. Here it is:
-- assuming you have name of a minimized window
set theWindowName to ....
-- is it minimized?
if (value of attribute "AXMinimized" of window theWindowName is true) then
-- first un-minimize the window
value of attribute "AXMinimized" of window theWindowName to false
-- raise it
perform action "AXRaise" of window theWindowName
I had not much documentation on attributes such as "AXMinimized" and perform action "AXRaise".