Login  Register

Re: Why are images automatically renamed?

Posted by vischer on Oct 07, 2010; 7:28pm
URL: http://imagej.273.s1.nabble.com/Why-are-images-automatically-renamed-tp3686678p3686682.html

Thanks Gabriel, Frederick, David for your points of view.

In fact, with "already open" and "renaming" I have touched
two subjects, and my favorite scenarios would be:

if I "Open" an image file, then:

a) if it is already open, it should be brought
   to the front rather than a copy being opened

b) if it is not open yet, but some other window happens
   to have the same title, it should still open with its
   original file name rather than being renamed-
   even if now two images have the same name.


It would be clear and reproducible behaviour, be  conform to most other applications,
wouldn't create unwanted duplicates, wouldn't produce new (unpredictable) names,
wouldn't create any number suffixes at all.
Still the user can explicitely duplicate in IJ or the Finder/Explorer.

My main concern is that my plugin relies on path names when handling images.
I want to be sure that the path name of an image remains valid
after being opened.
Currently, the path name may be spoilt due to automatic renaming.

> If the hidden window was brought to the front when you try to open, then it
> would not be an Open command, but a SelectWindow one. That would also be
> confusing when the original was processed and hidden.

Gabriel, I made experiments with other applications (Word, GraphicConverter,
BBEdit, PowerPoint); they all behave logical as described in a) and b).
ImageJ is an exception.

Norbert