Trying to close a non-image window
Posted by Philip Ershler on Feb 28, 2011; 4:34am
URL: http://imagej.273.s1.nabble.com/Trying-to-close-a-non-image-window-tp3685544.html
Why does this macro code fail in ImageJ64 1.44o? The window I'm trying to close results from
Image->Hyperstacks->Channel Tools->Channels->Split Channels
*************************************************************
list = getList("window.titles");
if (list.length==0)
print("No non-image windows are open");
else {
print("Non-image windows:");
for (i=0; i<list.length; i++)
print(" "+list[i]);
}
SelectWindow("Channels");
run("Close");
*************************************************************
The log shows
Non-image windows:
Channels
The error Undefined identifier <SelectWindow> ("Channels")
Thanks