// 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 location of input directories"); IJ.log("Input: " + directory); dirList = getFileList(directory); IJ.log(dirList.length + " directories."); outputDirectory = getDirectory("Choose output directory"); IJ.log("Output: " + outputDirectory); IJ.log(""); run("Bio-Formats Macro Extensions"); setBatchMode(true); c1fileList = getFileList(directory + dirList[0]); for (i=0; i