Login  Register

Re: How to launch imageJ+an image+a plugin in command line

Posted by dscho on Sep 19, 2007; 10:34am
URL: http://imagej.273.s1.nabble.com/How-to-launch-imageJ-an-image-a-plugin-in-command-line-tp3698364p3698365.html

Hi,

On Wed, 19 Sep 2007, Babarpapa wrote:

> I would like to know how it is possible to launch ImageJ and open an
> image and launch my plugin.
>
> I successed in opening imagej and an image but not my plugin (in a jar).
> "javaw -cp ij.jar ij.ImageJ DAPI_01.tif"

Try

        javaw -cp ij.jar ij.ImageJ DAPI_01.tif -eval 'run("My Macro", "");'

If in doubt about the way to call the plugin, activate
Plugins>Macro>Record... and run the plugin manually.  You should see the
correct call in the recorder window once the plugin finished.

Hth,
Dscho