Login  Register

Closing tables using close() macro command with wildcards

Posted by Stein Rørvik on Feb 19, 2021; 9:03am
URL: http://imagej.273.s1.nabble.com/Closing-tables-using-close-macro-command-with-wildcards-tp5024475.html

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")

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