Calling UnwarpJ plugin fails - Windows issue?
Posted by Paolo Tanga on Apr 27, 2008; 8:09pm
URL: http://imagej.273.s1.nabble.com/Calling-UnwarpJ-plugin-fails-Windows-issue-tp3694025.html
Hello
I need to call the UnwarpJ plugin from a macro, using ImageJ under
Windows XP.
The only syntax that appears to work requires a double back slash, such as:
run("UnwarpJ ","-align d:\\tmp\\clear_00000.fit NULL
d:\\tmp\\clear_00001.fit NULL 0 5 1 1 2 d:\\tmp\\unwarpout.tif");
If I use the output of "getDirectory()" for choosing a path, that comes with
single back slash as separators, and UnwarpJ throws a Java exception.
The same happens if I directly type single back slashes in the above line.
Where is the problem? How to use getDirectory() to produce a path string
that can be digested by UnwarpJ?
Thank you in advance
Paolo