another headless macro question
Posted by
Michael Elbaum on
Feb 13, 2020; 7:46am
URL: http://imagej.273.s1.nabble.com/another-headless-macro-question-tp5022931.html
Hi all,
continuing the thread of passing parameters in a headless macro, I'm trying to import and use a previously-saved Results table.
this syntax works as expected when called from command-line (java -jar ij.jar -macro ...) but not headless (./ImageJ-linux64 --ij2 --headless -macro ...):
resultpath = filepath + File.nameWithoutExtension + "_CS_gnuraw.tsv" (for example)
print(resultpath); (looks fine)
run("Results... ", "open=[resultpath]");
The error is:
Macro Error: No results found in line 19
so it seems that it isn't able to open the Results file.
Getting it to work from command line was also tricky because it tended to open the import dialog rather then the file itself. I've chosen .tsv for tables in Edit > Option > Input/Output, following an earlier post.
happy for any suggestions. the imagej website seems to be down now so the macro examples are inaccessible.
tia,
Michael
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html