Login  Register

Weird naming behavior of the batchMode

Posted by CARL Philippe (LBP) on May 02, 2021; 5:47pm
URL: http://imagej.273.s1.nabble.com/Weird-naming-behavior-of-the-batchMode-tp5024649.html

Dear all,
In the case I launch the following macro:
        run("Blobs (25K)");
        run("Blobs (25K)");
        run("Blobs (25K)");
I will get 3 pictures named "blobs.gif", "blobs-1.gif" and "blobs-2.gif".
And "blobs-3.gif", "blobs-4.gif" and "blobs-5.gif" in the case I launch the code again.
But I the case I lauch the following macro code:
        setBatchMode(true);
        run("Blobs (25K)");
        run("Blobs (25K)");
        run("Blobs (25K)");
        setBatchMode("exit and display");
The 3 outputted pictures will all have the name "blobs.gif".
And in the case I launch the macro a second time, I get 1 picture named "blobs-1.gif" and 2 pictures named "blobs.gif".
And if I launch it a third time, I get 1 picture named "blobs-2.gif" and 2 pictures named "blobs.gif" and so on.
Have a nice end of week-end.
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html