Re: bug report: -batch command adds txt extension and macros directory automatically
Posted by
dscho on
Mar 14, 2014; 3:59pm
URL: http://imagej.273.s1.nabble.com/bug-report-batch-command-adds-txt-extension-and-macros-directory-automatically-tp5006916p5006919.html
Hi Carnë,
On Fri, 14 Mar 2014, Carnë Draug wrote:
> The title says it all.
Call me dumb, but I still required the explanation below to understand the
issue.
> 1) create a simple macro
>
> $ echo 'print ("Hello world!");' > ./macro_test
>
> 2) get an error from ImageJ about file not existing
>
> $ ImageJ-linux32 -batch macro_test
>
> Macro or script not found:
>
> $path for imagej$macros/macro_test.txt
While you might argue that this is a bug, or that it is a bug that ImageJ
looks into the current directory first before looking into the macros/
directory when the file name contains no slash, by now it is an
established API (application programmers' interface).
Therefore I doubt that this bug -- if Wayne agrees that it is a bug -- can
be fixed without seriously breaking existing workflows. And backwards
compatibility is what Wayne states as one of his primary goals with ImageJ
when you get the chance to listen to one of his presentations.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html