problem with saveAs("Results..."

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

problem with saveAs("Results..."

Aryeh Weiss
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
Reply | Threaded
Open this post in threaded view
|

Re: problem with saveAs("Results..."

Rasband, Wayne (NIH/NIMH) [E]
On Jun 29, 2010, at 3:49 AM, Aryeh Weiss wrote:

> 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

These bugs are fixed in the 1.44d10 daily build.

-wayne