Login  Register

run macro in command line

Posted by Lee S on Oct 02, 2009; 2:29pm
URL: http://imagej.273.s1.nabble.com/run-macro-in-command-line-tp3690941.html

Dear,

I would like to know how to run imageJ with my images for linking with an
external homemade program.

For example, I have an image in c:\program files\imageJ\1.tif (image file)
and 1smacro.txt (macro).
When I typed,  "java -cp ij.jar;.RunMacro 1smacro.txt" in command line of
c:\program files\imageJ, java could not found "1smacro.txt".
Would you give me an example for my purpose?
How can I let ImageJ know 1.tif as the input parameter?

Best,

S. Lee