Login  Register

.csv format

Posted by Richard Mort-2 on May 12, 2015; 10:20am
URL: http://imagej.273.s1.nabble.com/csv-format-tp5012815.html

Hi,

I would like to save the results table as a .csv file that is comma
delimited from a macro so that I can parse it with a .py script to sort
the data and then import back into ImageJ. If I use jfilechooser to save
manually this works fine. However when I run the following from a macro
the file is always tab delimited.

run("Input/Output...", "jpeg=85 gif=-1 file=.csv use use_file copy_row
save_column save_row");
selectWindow(ImageID+"_Tracking_Table");
saveAs("Results", "/tmp/Results.csv");

How can I ensure the .csv file is truly comma delimited?

Best
R

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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