Login  Register

Re: save macro

Posted by dscho on Feb 23, 2011; 12:31am
URL: http://imagej.273.s1.nabble.com/save-macro-tp3685574p3685576.html

Hi,

On Tue, 22 Feb 2011, Robert Baer wrote:

> [...] the plug-in gets part way through its processing of image 1, and
> halts with an image window showing, and it pops up the dialog box
> saying, "The save() macro function requires a file name extension."

The problem comes from the save() method in IJ:

http://pacific.mpi-cbg.de/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=ij/IJ.java;hb=refs/heads/master#l1458

The funny thing is that this error message was introduced in 1.34j, back
in March 2005. And that's only when the error message was changed from
"File name extension required" to its current form.

So I guess that something changed in the way you call your plugin rather
than in ImageJ. I can only guess since I was deprived from having a look
at your code (making it hard to help you).

Ciao,
Johannes