Login  Register

Re: closing non-picture windows from a macro

Posted by JorgeValero on Mar 21, 2013; 8:49pm
URL: http://imagej.273.s1.nabble.com/closing-non-picture-windows-from-a-macro-tp3693084p5002340.html

This works perfectly for me:

list = getList("window.titles");
     for (i=0; i<list.length; i++){
     winame = list[i];
      selectWindow(winame);
     run("Close");
     }

Hope this helps someone,

Jorge Valero