I came across this bug in ImageJ:
If you create a new window in the text editor, it will be named Untitled.txt
If you then write some code, e.g. in JavaScript and select Run,
the image will be renamed Untitled.js. So far ok.
But the window name is still listed as Untitled.txt in the Window menu.
It is therefore impossible to select it from the menu,
so in case some other application came in front of ImageJ,
it is impossible to bring the script window to front again.
The only solution is to try to quit ImageJ,
and in case the window is unsaved it is brought to front again when ImageJ asks if you want to save it.
If it was saved, then you need to locate the file again and reopen it.
The above behavior is the same if you run the script as .js or .ijm or any of the other script languages.
The problem is simply the lack of update of the Window menu.
I am using daily build ImageJ 1.52f on Windows 7 64-bit.
Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html