macro parameter from command line
Posted by federica viti on Jun 02, 2008; 1:15pm
URL: http://imagej.273.s1.nabble.com/macro-parameter-from-command-line-tp3696096.html
Hi everyone,
I'm working on ImageJ 1.40 in batch mode. I cannot find anywhere if it's
possible passing parameters to a macros directly by command line. I mean
something like this:
./jre/bin/java -jar ij.jar -batch macros/Try.txt < inputTry
I cannot use dialog box because I'm working without GUI and not
interactively.
Particularly I need to pass the macro the name of a file. I thought to write
the name in a file and use the option of the open function to read it and
open the file .. something like the example I found on line:
run("Open...", "open="+getDirectory("plugins")+"README.txt");
but the name of my file is composed by variables, so I have to include
everything in a script to decode the name and it cannot read as a txt file.
Do you know some way to help me?
thank you very much
Federica