Login  Register

problem with saveAs("Results..."

Posted by Aryeh Weiss on Jun 29, 2010; 7:49am
URL: http://imagej.273.s1.nabble.com/problem-with-saveAs-Results-tp3687790.html

When we run the following in a macro:

electWindow("Results");
saveAs("measurements", output_dir+sep+or_filename+color+"nrg"+".xls");

We are prompted to open  a text window (and the file is not saved).

When we run File>Save as.. results, and use the macro recorder , we get:

saveAs("Results",
"/Users/amw/Desktop/usr/ayelet/shlomo/100629_macros/img_few/processed_nrg/7green_0005/Results.xls");
open("/Users/amw/Desktop/usr/ayelet/shlomo/100629_macros/img_few/processed_nrg/7green_0005/Results.xls");


(Sorry about the line wrapping).
Why is that second open command recorded -- I did not select it through
the menu.

Other hopefully helpful details:

We are running ij 1.44d9, from within Fiji.
OS is OSX 10.5.8



Thanks in advance.
--aryeh
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051