Login  Register

Re: No "Duplicate Entire Stack" option when calling run("Duplicate...", "title=Title"); in a macro ?

Posted by Michael Schmid on Oct 08, 2008; 5:07pm
URL: http://imagej.273.s1.nabble.com/No-Duplicate-Entire-Stack-option-when-calling-run-Duplicate-title-Title-in-a-macro-tp3694820p3694821.html

Hi Bill,

sorry, I cannot reproduce the problem.

entire stack:
   run("Duplicate...", "title=NewStack duplicate");
single slice:
   run("Duplicate...", "title=NoStack");

As usual, for checkboxes, the first word of each option is
recorded if the checkbox is active (and converted to lowercase).
So, "Duplicate Entire Stack" simply becomes "duplicate".

If you have a space in the name of the output stack, male sure
you enclose it in brackets:
   run("Duplicate...", "title=[My Second Stack] duplicate");

Michael
________________________________________________________________

On 8 Oct 2008, at 18:54, Bill Mohler wrote:

> The macro recorder does not distinguish whether I check the  
> Duplicate Entire Stack box when calling Duplicate... from the Image  
> menu.
>
> When I run a macro using a Duplicate... command that I recorded  
> (with the box checked), the macro only duplicates the current slice.
>
> Has anyone else seen this behavior?  Can the run("Duplicate..."    
> command be modified to accept that option within the macro code?
>
> Thanks,
> Bill