Re: Save command in macro in batch mode

Posted by Wayne Rasband-2 on
URL: http://imagej.273.s1.nabble.com/Save-command-in-macro-in-batch-mode-tp5021894p5021895.html

> 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