// batchTiffConvert.txt // Author: Melissa Linkert // Last updated: 28 March 2011 // Converts all files in a directory to TIFF using the Bio-Formats macro // extensions. There will either be one TIFF file per plane or one TIFF file // per input file, depending upon the value of 'oneFilePerSlice' (see below). // By default, one TIFF file is created for each plane in each file. directory = getDirectory("Choose input files"); IJ.log("Input: " + directory); fileList = getFileList(directory); IJ.log(fileList.length + " files."); outputDirectory = getDirectory("Choose output directory"); IJ.log("Output: " + outputDirectory); run("Bio-Formats Macro Extensions"); setBatchMode(true); for (i=0; i 1){ run("Split Channels"); } subDirs = newArray(sizeC); for(c=0;c