macro to save images as tif
Posted by Finn Peters on
URL: http://imagej.273.s1.nabble.com/macro-to-save-images-as-tif-tp3684836.html
Hei,
I would like to save a number of images as tif. If I record a macro in
which I save a sample image as tif-file then Image J gives every image
processed with that macro exactly the same name. But I want to save
every image with its original file name.
I tried to use the gettitle() function. But if I put that function into
the saveAs function (see at the bottom) it is not executed but used as a
string to name the file.
This is how the macro looks like right now:
while (nImages>0) {
title = getTitle();
print("title: " + title);
saveAs("Tiff", "C:\\Users\\Admins\\Desktop\\confocal tifs\\gettitle()");
close();
}
Can somebody give me a hint how to solve that problem?
cheers,
Finn