Re: ImageJ does not work from the command line if image name contains parenthesis
Posted by
Stein Rørvik on
Dec 21, 2015; 2:08pm
URL: http://imagej.273.s1.nabble.com/ImageJ-does-not-work-from-the-command-line-if-image-name-contains-parenthesis-tp5015265p5015268.html
It is a parenthesis problem. It works fine with spaces.
I haven't tested all other possible special characters but in general ImageJ is quite flexible in what it accepts in filenames.
I just tested with space in filename
"C:\Program Files\ImageJ\ImageJ.exe" -macro " C:\MyPath \Test Macro.ijm" "C:\MyPath\MyImage 2.tif"
and it works fine.
Stein
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Gabriel Landini
Sent: 21. desember 2015 15:08
To:
[hidden email]
Subject: Re: ImageJ does not work from the command line if image name contains parenthesis
On Monday 21 Dec 2015 13:56:59 Stein Rørvik wrote:
> > This does not work:
> "C:\Program Files\ImageJ\ImageJ.exe" -macro "C:\MyPath\Test Macro.ijm"
> "C:\MyPath\MyImage (2).tif"
Is that a parenthesis issue or is it the spaces in the name?
There are often problems and unexpected behaviour when using files that have spaces.
I do not know if it is a bug, but in the mean time, maybe you can create a Win batch script that first copies the file from the read-only system into a writeable location and then runs ImageJ on that location.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html