|
Dear ImageJers,
I have accounted some problem with my imageJ macro. I want to analyze a lot of .tif pics in my folder automatically. I have my macro, but couldn't have it work properly. I list my macro below. Every time I run the macro, there is a error message of " ")" expected in line14". I checked everywhere; but couldn't find any place lacking a ")". Could you give me some suggestions?
// start of code
macro "1"{
run("Set Measurements...");
dir1 = getDirectory("directory");
list = getFileList(dir1);
setBatchMode(true);
for (i=0; i<list.length; i++) {
showProgress(i, list.length);
filename = dir1 + list[i];
if (endsWith(filename, "tif")) {
open(dir1+list[i]);
run("8-bit");
run("Threshold...");
run("Analyze Particles...", "size=70-Infinity circularity=0.00-1.00 show=Outlines display exclude summarize record”);
close();
}
}
}
/////end
|