Re: How to save all opened images

Posted by newtonEMBL on
URL: http://imagej.273.s1.nabble.com/How-to-save-all-opened-images-tp3686986p5001346.html

better still...

// get image IDs of all open images
dir = getDirectory("Choose a Directory");
ids=newArray(nImages);
for (i=0;i<nImages;i++) {
        selectImage(i+1);
        title = getTitle;
        print(title);
        ids[i]=getImageID;

        saveAs("tiff", dir+title);
}