Hi Paulo,
Did you ever find a way around this bug. I have run into the same problem if run("Image Sequence..."...
It only works with double backslashes. I wonder if this is an artefact? It sounds like older versions of IJ returned doulbe backslashes with getDirectory. Maybe some functions have the embedded in them. For the time being, I'm trying to come up with simple loop to scan the path strong and double the backslashes, but this shouldn't be neccessary.
Thanks
Paolo Tanga wrote
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