More often than not I will have ALT-TABbed away from Photoshop to the desktop (or maybe the Bahamas), but on my return all previous Photoshop files that I was working on will have been minimised. - This can be quite annoying, especially, if you have several open.
So...I wondered if a script could fix it - just looping over each document and setting it to the active document. And funnily enough, it fixes the problem
I'm sharing it here, mainly for future reference for myself... and anyone else who encounters the same thing:
// Brings all the minimized documents to the fore
if (documents.length == 0) return;
for (var i = 0; i < documents.length; i++)
app.activeDocument = documents[i];