Close non-image Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Close non-image Windows

lechristophe
Dear ImageJ specialists,

Is there a way to close a non-image window from a macro ? From what I
understood, the close() functions is specifically designed to close the
active image, even if a non-image window is selected. So do a function
for any non-image windows exist, or are there workarounds ?

Christophe



--
Christophe Leterrier

Postdoc
INSERM UMR641 Neurobiology of ionic channels
IFR Jean Roche
<http://ifrjr.nord.univ-mrs.fr/-Institut-Jean-Roche-?lang=en> -
Mediterranee University
Marseille, France
Reply | Threaded
Open this post in threaded view
|

Re: Close non-image Windows

Jim Passmore
Christophe,

A while back I wanted to the the same thing.  I managed to find code
similar to the following, which closes the results window, if it is open.

if(isOpen("Results")) {
      selectWindow("Results");
      run("Close");
}

Jim

----------------------------------------------
Jim Passmore
Research Associate
Sealed Air Corporation
[hidden email]
864-433-2927 voice
864-433-2205 fax
----------------------------------------------





ImageJ Interest Group <[hidden email]> wrote on 10/01/2007 06:19:17
AM:

> Dear ImageJ specialists,
>
> Is there a way to close a non-image window from a macro ?
> From what I
> understood, the close() functions is specifically designed
> to close the
> active image, even if a non-image window is selected. So
> do a function
> for any non-image windows exist, or are there workarounds ?
>
> Christophe
>
>
>
> --
> Christophe Leterrier
>
> Postdoc
> INSERM UMR641 Neurobiology of ionic channels
> IFR Jean Roche
> <http://ifrjr.nord.univ-mrs.fr/-Institut-Jean-Roche-?lang=en> -
> Mediterranee University
> Marseille, France