Re: ImageJ/Fiji - quit after script/macro
Posted by
dscho on
URL: http://imagej.273.s1.nabble.com/ImageJ-Fiji-quit-after-script-macro-tp5002245p5002256.html
Hi Rainer,
On Mon, 18 Mar 2013, Rainer M. Engel wrote:
> I like:
> The way I can batch macros via command line with (-batch). In headless
> mode not all functions seem to work. Curtis wrote about that here..
>
http://imagejdocu.tudor.lu/doku.php?id=faq:technical:how_do_i_run_imagej_without_a_graphics_environment_headlessYes, it is unfortunate that not everything works in headless mode. To
address this was one of ImageJ2's design goals.
> What I would like to be able:
> Use the command line to send a macro to ImageJ/FIJI. Using -macro works
> and executes the macro, but after that the GUI is still visible. What I
> want to achieve is a "batch mode" with a visible GUI during macro
> execution. This would be nice for feedback purposes during execution.
>
> Is that possible somehow already?
You can always run 'run("Quit");' at the end, or if that does not work for
you (it does work here): eval("script", "System.exit(0);");
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html