Re: ImageJ/Fiji - quit after script/macro

Posted by Rainer M. Engel on
URL: http://imagej.273.s1.nabble.com/ImageJ-Fiji-quit-after-script-macro-tp5002245p5002248.html

Dear Rainer, oh that's me ;-)

Serious.. I made the mistake to change from -macro to -batch in the
command line. I made that only to confuse myself..

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_headless

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?

Regards,
Rainer




Am 18.03.2013 14:35, schrieb Rainer M. Engel:

> Hello everyone,
>
> is there a way to quit (close the application itself) ImageJ/FIJI after
> script/macro execution?
>
> I tested a macro which creates a text file.
>
> //..........................................
> print("Hello World");
> file = File.open("path/myfile.txt");
> print(file, "Hello World");
> File.close(file);
> //..........................................
>
> It worked from FIJI as expected also from command line via -batch. Then
> I tried the headless mode but it didn't work anymore. Although headless
> mode quits the application at the end. Does it?
>
> Running a macro in batch mode is fine for me, due to the log-output
> giving feedback during execution. Mmmh...
>
> Any help, tips appreciated.
>
> Regards,
> Rainer
>

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