Dear Wayne,
Thanks a lot for your answer and don't bother I'm solving the issue by just uncommenting the line with the Array.deleteValue.
Take care,
Philippe
----- Mail original -----
De: "Wayne Rasband" <
[hidden email]>
À: "imagej" <
[hidden email]>
Envoyé: Mercredi 31 Mars 2021 19:05:33
Objet: Re: Bug or feature - This is the question
> Dear all,
> The following small macro code will throw in an error
> WinOp = getList("window.titles");
> // WinOp = Array.deleteValue(WinOp, "Command Finder");
> for(i = 0; i < WinOp.length; i++)
> {
> selectWindow(WinOp[i]);
> run("Close");
> }
> unless I uncomment the second line of the code.
> This means that I can't apply a "run("Close");" on a "Command Finder" window.
> Thus is this restriction done in purpose or rather a bug?
> My best regards,
> Philippe
The File>Close command, and the close("Command Finder") macro function, do not work with the "Command Finder" window because it is a JFrame, not an ImageWindow, PlugInFrame, PlugInDialog or TextWindow. I do not see an easy fix for this problem.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html