close command windows from a macro..
Posted by Nicola B. on Jun 11, 2008; 12:00pm
URL: http://imagej.273.s1.nabble.com/close-command-windows-from-a-macro-tp3695969.html
Dear all,
I want to close a no image windows from a macro.
In instance when I run this part of macro:
---------------------------------
run("Brightness/Contrast...");
run("Enhance Contrast", "saturated=0.5"); // b&c "auto" settings..
run("Apply LUT");
---------------------------------
the B&C windows still remain open.
I just search in archives and I adapt what I found in the follow solution:
-------------------------------------
if(isOpen("B&C")) {
//print("open");
selectWindow("B&C");
run("Close");
}
--------------------------------------
Exist something more elegant/efficient?
Best regards,
nicola