Re: macro language: how to get Duplicate work on the whole stack

Posted by jmutterer on
URL: http://imagej.273.s1.nabble.com/macro-language-how-to-get-Duplicate-work-on-the-whole-stack-tp3701625p3701626.html

Nico, you should add the 'duplicate' keyword in the arguments string like this :

run("Duplicate...", "title=new_title duplicate");

Also, you can simply record any command with any options with the
macro recorder, and it will show you the syntax.

Jerome

On 9/8/06, Nico Stuurman <[hidden email]> wrote:

> Is there a way to have the
>
> run("Duplicate...","new_title");
>
> command in the macro language work on the whole stack (i.e., 'check'
> the checkbox that is present in the user interface), rather than only
> the current frame?  I know I can achieve this by looping through the
> slices and copying them individually, but this ends up being much
> slower than the duplicate command in the UI.
>
> Thanks!
>
> Nico
>