I have a strange mistake:
When i run this script in Image J it opens a dialog, asks for a filename and writes the file as expected:
#@String filename import os from ij import IJ, ImagePlus imp = IJ.createImage("Untitled", "8-bit random", 100, 100, 1) file_path=os.path.join("D:\\Fiji",filename) IJ.saveAs(imp, "Tiff",file_path) IJ.run("Quit")
If i call it afterwards in headless and pass on an other filename, it still remembers what it did last and
writes a file with the wrong name??
I use the same synatax i would do at linux:
D:\\Fiji\Fiji.app\ImageJ.exe --ij2 --headless --run D:\\Fiji\Hello_file_.py 'filename="test.tif"'
Do you have any idea what might go wrong on windows 10, Fiji 1.51s Java 1.8.0_66 64 bit.
Thanks a lot & Kind regards