Login  Register

Re: Closing tables using close() macro command with wildcards

Posted by Wayne Rasband-2 on Feb 21, 2021; 12:16am
URL: http://imagej.273.s1.nabble.com/Closing-tables-using-close-macro-command-with-wildcards-tp5024475p5024476.html

> On Feb 19, 2021, at 4:03 AM, Stein Rørvik <[hidden email]> wrote:
>
> From the macro documentation:
>
> close(pattern)
> ... For text windows, wildcards are allowed if 'pattern' ends with ".txt", ".ijm", ".js" etc. ...
>
> close("*.txt") works as expected, but not close("*.csv") or close("*.tsv”)

close(“*.csv”) already works for closing tables. With the 1.53i19 daily build, close(“*.tsv”) also works.


> Under IO options, we have the choice of three convenient file extensions for tables:
> .csv, .tsv or .txt
>
> What about adding .csv and .tsv to the supported wildcard patterns in the close() macro function?
>
> I always use .tsv for tables, since that will open directly in Excel without the need to use the import function for correct number-formatting.
>
> Stein

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