Posted by
Jan Eglinger on
Sep 17, 2014; 3:39pm
URL: http://imagej.273.s1.nabble.com/IJ1-Macro-recorder-tp5009669p5009680.html
Hi all,
my suggestion in the bug report [1] was to record a space string (" ")
when all parameters were left at the default values. That way, all
missing parameters are filled by default values when being run as a macro.
run("Duplicate...", " ");
This will result in the desired behaviour, duplicating an image with the
default name generated from the current image title.
Cheers,
Jan
[1]:
http://fiji.sc/bugzilla/show_bug.cgi?id=828#c0On 17.09.14 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