Sven,
You could also try the script (for Unix/Linux) at
http://rsb.info.nih.gov/ij/download/linux/unix-script.txt(Save contents of this page as 'imagej', and modify the path variables as
appropriate for your system)
It allows the use of relative paths. If ImageJ is already running, it will
open new images in this ImageJ window unless you use the -new switch, in
which case a new ImageJ window will be launched.
The usage is as follows:
imagej [options] <img1> [<img2> ..] -> open images
imagej [options] [<img1>] -macro <macro> <arg1> [<arg2> ..] -> run macro
imagej [options] [<img1>] -batch <macro> <arg1> [<arg2> ..] -> batch mode
-mem <MegaBytes> sets available memory (default/max = 512/1800)
-verbose print imagej command line
-new force opening a new ImageJ window
(default is to open image in existing window)
-port <N> use port <N> where 1 < N < 99
-eval 'Macro Code'
-run 'Menu Command'
Regards,
Jon
On Mon, 8 May 2006 13:30:36 +0200, Johannes Schindelin
<
[hidden email]> wrote:
>Hi,
>
>On Mon, 8 May 2006, Sven Boekhoff wrote:
>
>> cd /home/sven/.programme/ImageJ
>
>If you use this, you can no longer pass relative paths to the script, i.e.
>
> sh ImageJ.sh bla.png
>
>will *fail*, since you actually cd away from the current position. Use
>something like this instead:
>
>-- snip --
>#!/bin/sh
>java -jar /full/path/to/ImageJ/ij.jar -ijpath /full/path/to/ImageJ "$*"
>-- snap --
>
>Hth,
>Dscho
>=========================================================================