Login  Register

Re: Running a Jython Script from the Command Prompt

Posted by MChapman on Feb 15, 2017; 2:39pm
URL: http://imagej.273.s1.nabble.com/Running-a-Jython-Script-from-the-Command-Prompt-tp5018100p5018106.html

Michael - I will look into the subprocess option...I remember trying it before and the os.popen was simple and worked well for my application, but I will revisit it now.

Curtis - "os.popen('"C:\Program Files\Fiji.app\ImageJ-win64.exe" -ij2 --headless --run "SomeScript.py"')  " had the same result of just opening the script.

"os.popen('"C:\Program Files\Fiji.app\ImageJ-win64.exe" --jython "SomeScript.py"')  " doesn't get any response from ImageJ at all.

Mike