Save command in macro in batch mode

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Save command in macro in batch mode

Robert Lockwood
My macro, in batch mode, creates a stacks which are, one at a time saved it
to a user supplied directory but 'save' asks for the user's input.  How do
I save with no user action required.
<snippet>
    run("Images to Stack", "name=" + stackName + " title=[] use");
    run("Save", "name=" + destPathName + " use");
<\snippet>

'destPathName' is a fully qualified pathname for the stack.

Recording a Save command didn't provide any information.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Save command in macro in batch mode

Wayne Rasband-2
> On Mar 6, 2019, at 6:00 PM, Robert Lockwood <[hidden email]> wrote:
>
> My macro, in batch mode, creates a stacks which are, one at a time saved it
> to a user supplied directory but 'save' asks for the user's input.  How do
> I save with no user action required.
> <snippet>
>    run("Images to Stack", "name=" + stackName + " title=[] use");
>    run("Save", "name=" + destPathName + " use");
> <\snippet>
>
> 'destPathName' is a fully qualified pathname for the stack.

This is what is recorded when I use the File>Save As>Tiff command to save a stack:

   saveAs("Tiff", "/Users/wayne/Downloads/Untitled.tif");

> Recording a Save command didn't provide any information.

This is a bug that is fixed in the latest daily build (1.52m32).

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html