Bug report: File.directory () builtin function fails in -batch
Posted by
Carnë Draug on
Mar 14, 2014; 2:46pm
URL: http://imagej.273.s1.nabble.com/Bug-report-File-directory-builtin-function-fails-in-batch-tp5006917.html
The macro builtin function "File.directory()" does not work when
starting ImageJ via command line -batch:
1) create a simple macro
$ echo ''open (getArgument()); print (File.directory ());' > ./macro_test.ijm
2) see how File.directory() fails, displaying an empty message on the log window
$ ImageJ-linux32 -batch ./macro_test.ijm ./path_to_image
As a temporary workaround, I am using "getDirectory('image')" but they
are different things. One returns the directory for the last opened
using open(), while the other returns the currently active image.
I am using ImageJ via FIJI in Debian Squeeze (current stable version)
IJ.getVersion: 1.48s
IJ.getFullVersion: 1.48s99
Carnë
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html