Posted by
Cammer, Michael on
Oct 07, 2010; 7:31pm
URL: http://imagej.273.s1.nabble.com/Why-are-images-automatically-renamed-tp3686678p3686689.html
Every image has a unique identifying number. Therefore, in macros, I never use the selectWindow() command. Each time a window is opened, the macro uses getImageID() to make sure that names don;t cause a conflict.
_________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208 Cell: (914) 309-3270
________________________________________
From: ImageJ Interest Group [
[hidden email]] On Behalf Of Norbert Vischer [
[hidden email]]
Sent: Thursday, October 07, 2010 3:28 PM
To:
[hidden email]
Subject: Re: Why are images automatically renamed?
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
------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================