Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 -- Rainer M. Engel, Dipl. Digital Artist scientific|Media GbR Pichelsdorfer Str. 143 13595 Berlin -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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 > ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
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_headless Yes, 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 |
Free forum by Nabble | Disable Popup Ads | Edit this page |