import ij.*; gui.message("Live measurements"); numberOfImages = 25; // update will automatically snap a new image and display it // caveat: the image window must be already open in the GUI (press //"Snap Image" at least once) // before running this script for (int i=0; i < numberOfImages; i++) { gui.updateImage(); IJ.run("Measure"); }