Login  Register

Re: macro to save images as tif

Posted by Gabriel Landini on Apr 27, 2011; 9:45am
URL: http://imagej.273.s1.nabble.com/macro-to-save-images-as-tif-tp3684836p3684837.html

On Wednesday 27 Apr 2011, Finn Peters wrote:
> 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.
 
> while (nImages>0) {
> title = getTitle();
> print("title: " + title);
> saveAs("Tiff", "C:\\Users\\Admins\\Desktop\\confocal tifs\\gettitle()");
> close();
> }
 
Try to chage the line to this (did not test it, though):
 saveAs("Tiff", "C:\\Users\\Admins\\Desktop\\confocal tifs\\"+title);

Cheers
G.