<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - saveAs("Results", "...") does not work"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=987">987</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>saveAs("Results", "...") does not work
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P4
</td>
</tr>
<tr>
<th>Component</th>
<td>Plugins
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tokamoto@biosearchtech.com
</td>
</tr>
<tr>
<th>CC</th>
<td>tokamoto@biosearchtech.com
</td>
</tr></table>
<p>
<div>
<pre>I'm trying to save some results as a csv file in a macro. When I run it using
ImageJ 1.49m it works fine, using 1.49n no files are saved.
Here's a mini macro to help with my issue, including my initialization steps.
setBatchMode(true);
setOption("ShowRowNumbers", false);
requires("1.49m");
run("Set Measurements...", "area mean standard min median redirect=None
decimal=3");
run("Input/Output...", "jpeg=85 gif=-1 file=.csv save_column");
run("Table...", "name=Points width=400 height=200");
print("[Points]", "Header1, Header2, Header3");
print("[Points]", "Data1, Data2, Data3");
selectWindow("Points");
saveAs("Results", "C:\\Users\\tokamoto\\Desktop\\Results_Points.csv");
run("Close");
My final Points table usually looks similar to the following...
Points
Filename, 1, 2, 3, 4, 5, 6
Filename, 1, 2, 3, 4, 5, 6
In my macro, I'm transferring results from the results table to the "Points"
table, with each row containing a filename, then numbers all separated by
commas.
The "Points" table is full when it is saved, but no file is created. I've had
to downgrade to 1.49m in the mean time.
Information about your version of Java:
os.arch => amd64
os.name => Windows 7
os.version => 6.1
java.version => 1.6.0_24
java.vendor => New Oracle
java.runtime.name => Java(TM) SE Runtime Environment
java.runtime.version => 1.6.0_24-b07
java.vm.name => Java HotSpot(TM) 64-Bit Server VM
java.vm.version => 19.1-b02
java.vm.vendor => Sun Microsystems Inc.
java.vm.info => mixed mode
java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
java.specification.name => Java Platform API Specification
java.specification.version => 1.6
sun.cpu.endian => little
sun.desktop => windows
file.separator => \
The up-to-date check says: CHECK_TURNED_OFF
Information relevant to JAVA_HOME related problems:
JAVA_HOME is set to: C:\Fiji.app/java/win64/jdk1.6.0_24//jre
imagej.dir => C:\Fiji.app
Information about the version of each plugin:
Activated update sites:
ImageJ: <a href="http://update.imagej.net/">http://update.imagej.net/</a> (last check:20141222150235)
Fiji: <a href="http://fiji.sc/update/">http://fiji.sc/update/</a> (last check:20150108023217)
Files not up-to-date:
a6fb0af8 (MODIFIED) 20150113125324 jars/ij-1.49m.jar
1aebacaa (LOCAL_ONLY) 20150113130207 macros/Individual/SNR.ijm
7e29c562 (LOCAL_ONLY) 20150109131628
macros/Individual/Startup/StartupMacros.fiji.ijm
f6de9c64 (LOCAL_ONLY) 20150109133030 macros/Individual/automerge.ijm
ed5b891e (LOCAL_ONLY) 20150109133039 macros/Individual/autominmaxtif.ijm
0eb63eff (LOCAL_ONLY) 20150109133044 macros/Individual/openzproject.ijm
78d356ac (LOCAL_ONLY) 20150109133047 macros/Individual/regexmerge.ijm
b730eee9 (MODIFIED) 20150113130514 macros/StartupMacros.fiji.ijm</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>