Login  Register

Re: Bug or feature - This is the question

Posted by CARL Philippe (LBP) on Mar 31, 2021; 5:58pm
URL: http://imagej.273.s1.nabble.com/Bug-or-feature-This-is-the-question-tp5024561p5024576.html

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