Login  Register

Re: Macro Language Issues

Posted by zhhjll on Aug 17, 2016; 5:30pm
URL: http://imagej.273.s1.nabble.com/Macro-Language-Issues-tp5002660p5017041.html

Hi
I am beginner in ImageJ, sorry if I am digging up a dead topic. I have in a
emergency situation that have to ask it.

I am trying to analyze a sequence of images of few particles that I have to
write the position of this particles in text files. I am using this macro
but in the save as part I ma getting an error.

please help if you know whats going on!

num = getNumber("number of images : ",100) ;
for(id=num-1; id >= 0 ;id--)
{

if ( id < 10)
open("/Users/zjalilvand/Desktop/test/images000"+id+".tif");
if ( id > 9 && id < 100)
open("/Users/zjalilvand/Desktop/test/images00"+id+".tif");
if ( id > 99)
open("/Users/zjalilvand/Desktop/test/images0"+id+".tif");


run("Analyze Particles...", "size=100-1000 circularity=0.0-1.00 show=Nothing
display clear slice");
saveAs(“measurements”,
”Users/zjalilvand/Desktop/test/results/Results"+id+".txt");
close;
}