/* for ImageJ 1.50i This macro is for saving all open windows with overlays. User needs to change the path for each dataset. */ var path = "G:\\Crystal microscopy\\outputdirectory\\" macro "save all open files" { for (i=1; i<=nImages(); i++) { selectImage(i); //newTitle = replace(getTitle(), rootname, ""); saveAs("Tiff", path + "overlay "+ getTitle); } } // end save all open files