saveas window name + a tag
Posted by Michael Doube-2 on Mar 01, 2006; 4:11pm
URL: http://imagej.273.s1.nabble.com/saveas-window-name-a-tag-tp3703537.html
Hi all
Hopefully this is a 2-second problem.
I'd like to incoporate a saveAs("Jpeg", windowtitle+endtag.jpg) type of
line in a macro, but I just can't get it to work.
Basically, the macro opens 2 raw files and combines them as an
anaglyph. The anglyph is saved as a new file, whose name should be
something like rawfile1_anaglyph.jpg.
The macro looks like this at the moment:
run("Raw...", "image=8-bit width=1536 height=1536 offset=128 number=1
gap=0");
name=getTitle;
tag="_anag.jpg";
run("RGB Color");
run("Raw...", "image=8-bit width=1536 height=1536 offset=128 number=1
gap=0");
run("RGB Color");
run("Two Shot Anaglyph");
saveAs("Jpeg", name+tag);
close();
close();
close();
Cheers
Mike