Login  Register

Re: Saving Log window as a csv file but not a txt file

Posted by Michael Schmid on Apr 16, 2015; 1:35pm
URL: http://imagej.273.s1.nabble.com/Saving-Log-window-as-a-csv-file-but-not-a-txt-file-tp5012505p5012507.html

Hi Tomm,

maybe you have selected ".txt" in Edit>Options>Input/Output...

By the way, also this Options command can be recorded by Plugins>Macros>Record. So if you want to make sure that the setting is correct, you could add it to your macro.

Michael
________________________________________________________________
On Apr 16, 2015, at 14:38, Tomm wrote:

> Hi all,
>
> I want to save a text of Log window as a csv file.
> But the txt file was saved.
> How can I change the extension from txt to csv?
> Here is my macro code.
>
> --
> dir = getDirectory("Choose a Directory");
> name = "test";
> print("10"+","+"20");
> saveAs("Text", dir +name + ".csv");
> --
>
> Thanks,
> Tomm
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Saving-Log-window-as-a-csv-file-but-not-a-txt-file-tp5012505.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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