/* for ImageJ 1.50i This macro is for saving all open windows that have the same long root name followed by something else, which is typical of lif files from Leica confocals. User needs to change the path and the rootname variables for each dataset. Open all imagesets in the lif file. They will all have the same long root name at the beginning of the title. The last part of each title is unique. Then run this macro to save each one with original raw data values. Steps to change the LUTs & composite method could be set before saving. */ var rootname = "WT vs Dff.lif - "; var path = "G:\\Crystal_microscopy\\subdirectory\\" macro "save all open files" { for (i=1; i<=nImages(); i++) { selectImage(i); newTitle = replace(getTitle(), rootname, ""); saveAs("Tiff", path + newTitle); } } // end save all open files