Login  Register

running script in headless mode partially

Posted by maikelb on May 12, 2015; 1:22pm
URL: http://imagej.273.s1.nabble.com/running-script-in-headless-mode-partially-tp5012822.html

Hi all,

I have written a javascript for Fiji/ImageJ that requires some user input parameters via the GenericDialog class. I can run the script from the terminal (Mac os x) using the following code:

java -jar /path/to/Fiji.app -macro /path/to/script

However, adding --headless as follows does exactly the same (so it does not run headless):

java -jar /path/to/Fiji.app --headless -macro /path/to/script

Anyway, I would like to ONLY show the GenericDialog and keep the rest of the windows hidden. Do I fix this in the script or with specific terminal commands? Any tips would be greatly appreciated!

Regards,

Maikel