Login  Register

Re: bug report: -batch command adds txt extension and macros directory automatically

Posted by Kenneth Sloan-2 on Mar 14, 2014; 7:51pm
URL: http://imagej.273.s1.nabble.com/bug-report-batch-command-adds-txt-extension-and-macros-directory-automatically-tp5006916p5006930.html

I’v got to agree with the OP here - if you have a file name, and a file with that EXACT filename exists, then that’s what you should get.

Changing the file lookup to do this should not break old stuff.  

If you want to be stiff-necked and declare that only “.ijm” is correct, then also ban “.txt”.

If would be (marginally) acceptable (to me) if the EXACT filename were delivered ONLY if the same filename with either “.ijm” or “.txt” did NOT exist.  I think this is sub-optimal, but OK.

But, complaining that the file does not exist is clearly (to me) broken.

--
Kenneth Sloan
[hidden email]


On Mar 14, 2014, at 14:44 , Johannes Schindelin <[hidden email]> wrote:

> Hi Carnë,
>
> On Fri, 14 Mar 2014, Carnë Draug wrote:
>
>> On 14 March 2014 17:59, Johannes Schindelin <[hidden email]> wrote:
>>> On Fri, 14 Mar 2014, Carnë Draug wrote:
>>>
>>>> The bigger problem, which if fixed would not break backwards
>>>> compatibility, is that after looking into the macros directory with a
>>>> file extension that was never defined,
>>>
>>> Please specify the exact file name, then, and do not let ImageJ guess
>>> what you want.
>>
>> I am sorry if I am not being clear but that is exactly what I am doing.
>
> Sorry, I did not mean "exact", I meant "correct". If it is a macro, use
> the ".ijm" extension.
>
> I apologize for my mistake,
> Johannes
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html