'this macro opens all image files in a directory, does something to them and stores them someplace else. 'Chaitanya Athale, 2013 macro "Batch Convert Imgs" {batchconvert("Tiff")} function batchconvert( frmt ){ dir1 = getDirectory("Choose Input Directory "); list = getFileList(dir1); print("No. of files:", list.length ); dir2 = getDirectory("Choose Output Directory to save Images into"); setBatchMode(true); for (i=0; i