running macro from a cmd prompt

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

running macro from a cmd prompt

RussellP
Hi
I realise that this matter has been covered but I having no success. So I thooght I might clarify a few things.

I am trying to run a macro from a dos command prompt, in windows. All the advice I see about macros and prompts seems to refer to fiji, rather than imageJ, like
fiji --headless --console HelloWorldMacro.ijm. But I have an installation of imagej, not of fiji, and it is unclear as to where I can get fiji
Then there are posts that refer to running it as java - jar <path to jar> ij.jar,   but, I have a ij.1.49.jar file, so I guess this is the one.

So, this is what I have come up with, namely
java -jar C:\Users\Russell\Downloads\fiji-win32\Fiji.app\jars\ij-1.49m.jar -headless -macro C:\Users\Russell\Downloads\fiji-win32\Fiji.app\HelloWorld.txt.

This works, but it does not start in a headless  state.

Any thoughts would be appreciated, especially regarding making this run in headless mode.

Cheers

Russell