Re: Weird macro behaviour

Posted by analia on
URL: http://imagej.273.s1.nabble.com/Weird-macro-behaviour-tp5011475p5011482.html

Dear Kees,

the name of the image has no spaces.
Moreover, the command run("Add Image...","image="+[original]) gives me an error in "["

If I re-write to run("Add Image...","image=[original]"); I obtain the previous behaviour. That is, instead of adding the original image to the ROI, it gives me the original image.

I just don't understand what is so different in running the macro from the macro editor or running it from outside... it is exactly the same code.

Thanks,
AnĂ¡lia