// This is a comman line macro that runs the
// particle anlyzer on a specified image.
  path = getArgument();
  if (path=="")
      exit("No argument!");  
  print("opening "+path);
  run("Open...", "path='"+path+"'");
  if (nImages==0)
    exit("\"" + path + "\" is not an image");
  run("Set Measurements...", "area mean circularity decimal=3");
  print("analyzing particles");
  run("Threshold", "stack");
  run("Analyze Particles...", "minimum=1 maximum=999999 bins=20 show=Nothing display clear stack");
  run("Close");
  print("done");
