Bugzilla – Bug 528 |
SaveAs and LOCI Exporter do not function correctly on consecutive Macro calls |
Last modified: 2013-07-07 10:09:03 CDT |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
SaveAs and LOCI Exporter do not function correctly on consecutive Macro calls |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 81 see redma.1st in the zip file To make it simple, here's is a batch windows file, set IJ=ImageJ %IJ% -macro macro1.ijm pause %IJ% -macro macro2.ijm pause %IJ% -macro macro3.ijm pause consisting of consecutive calls of three macros. which are identical... if (getMetadata("Info") == "") saveAs("Tiff", "image1.tif"); else { args = "save=[image1.ome.tif] compression=Uncompressed"; run("Bio-Formats Exporter", args); } ... save for file names (image1 in macro1, image2 in macro2 and image3 in macro3). After running this sequence one would expect to end up with three images saved. This is not so: the second and third macro do not save automatically as requested.Instead of that they open a SaveAs dialog (resp LOCI Exporter dialog) with a suggestion for the file name provided in the previous macro (see log file for details). Note pause statements - it is not due to command getting executed to fast. Versions: ImageJ 1.46r and Fiji current snapshot Corrolary question: any suggestion for a more robust test of whether the image is 2D or multidimensional - i.e. to bes tored via LOCI? TiA