Posted by
Michael Schmid on
Sep 17, 2014; 3:48pm
URL: http://imagej.273.s1.nabble.com/IJ1-Macro-recorder-tp5009669p5009682.html
Hi Gabriel,
ok, now I understand the problem. Hmm, I fear, then recording nothing should be considered a bug...
A good possibility would be recording
run("Duplicate...", "Title=[]"); or
run("Duplicate...", "Title=");
This would cause the macro to use the default text, e.g. 'blobs-1.gif'
[ Note that the same trick does not work with numbers, you can't have
run("Median...", "radius="); //causes an error
But her it would not make sense to use the dafualt value in a macro, because it depend on the value that has been used before ]
Michael
________________________________________________________________
On Sep 17, 2014, at 17:29, Gabriel Landini wrote:
> On Wednesday 17 Sep 2014 17:15:34 you wrote:
>> not sure if I should consider it a bug, at least concerning the Duplicate
>> command it seems to be a nice feature.
>
> The problem becomes that you record a macro, don't give a name. IJ renames it
> as imagename-1. That is fine.
> But when you run the recorded script, as there is no name specified, a dialog
> pops up, instead of renaming the image as imagename-1. This stops the macro
> running.
>
> I must say that I do not remember well if this has changed recently or how was
> it in older versions.
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html