Login  Register

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

Posted by Bill Mohler on Oct 08, 2008; 6:08pm
URL: http://imagej.273.s1.nabble.com/No-Duplicate-Entire-Stack-option-when-calling-run-Duplicate-title-Title-in-a-macro-tp3694820p3694823.html

OK.  Thanks for the explanation!

I must have made some error in copying the line of code.  It works for me
now!

----- Original Message -----
From: "Michael Schmid" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, October 08, 2008 1:07 PM
Subject: Re: No "Duplicate Entire Stack" option when calling
run("Duplicate...", "title=Title"); in a macro ?


> 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