Re: run("Duplicate...") in a macro records 'selectWindow'

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/run-Duplicate-in-a-macro-records-selectWindow-tp3690927p3690931.html

On Sunday 27 September 2009, Jan Eglinger wrote:
> when I run:
>   run("Duplicate...", "title");
> in an ImageJ macro, the recorder records:
>   selectWindow("title");

Yes I can replicate that under linux.

I also have encounter a few other commands that also get recorded when run
from a macro, such as :
roiManager("Add");
roiManager("Delete");

There might be some more, but I cannot remember right now.
Although most users would not encounter this problem, if one creates new
commands as macros, then of course the recorder will have those extra
unexpected commands.
This can be avoided by just inserting the code in the new macro instead of
recording but that is besides the point you raised.

Regards

G.