path = getDirectory("Choose a Directory"); filename = getFileList(path); newDir = path + "Max Projections" + File.separator; if (File.exists(newDir)) exit("Destination directory already exists; remove it and then run this macro again"); File.makeDirectory(newDir); for (i=0; i