Closing tables using close() macro command with wildcards

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Closing tables using close() macro command with wildcards

Stein Rørvik
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
Reply | Threaded
Open this post in threaded view
|

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

Wayne Rasband-2
> 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