Login  Register

Re: unable to select windows if they have the same name

Posted by Gabriel Landini on Aug 01, 2008; 4:06pm
URL: http://imagej.273.s1.nabble.com/unable-to-select-windows-if-they-have-the-same-name-tp3695409p3695410.html

On Friday 01 August 2008 16:40:29 John Alexander wrote:

> I just noticed that the list of images one sees when looking in the
> ImageJ->Window list
> must use the image name rather than the ID since I am unable to select
> any image other than the first.

Even if it used the ID, it would quite ugly to go through a list of same-named
images. Is that image 123 or 124? There is too much room for doing mistakes.
 
> This is now proving problematic if I have 30 images opened with the same
> name - and I want to manually go through them - I have no way of quickly
> select the 5th image manually.  I have to shuffle all the windows to one
> side to find the one I want.

This sounds like the Monty Python sketch where everybody is called Bruce.
What about something like renaming your images with the ID as you open them?

> Not really a bug report, but, the list is rather useless as a means to
> select images in my particular case.

Give every image a number or suffix and that would sort it.

> Plus (and I have not confirmed  
> this) it makes me wonder if the selectImage() would not work properly if
> I used an id that is positive.

According to the documentation, the ID is a unique negative number.

Cheers,
G.