Easy Macro question

Posted by Rick Simmons on
URL: http://imagej.273.s1.nabble.com/Macro-dialog-prefs-tp3688182p3688184.html

Hello,
The following macro works fine until the last line.  The Plot Profile
command executes, but the file is not saved.  No error messages appear.


I need to know how to include the save or saveAs option for the Plot
Profile command.  Also, is there a place where the option syntax is
documented for all menu commands (such as Plot Profile)?

Thanks,
Rick Simmons

   //---------- get image dimensions in pixels
   width = getWidth;
   height = getHeight;  

   //---------- copy original image to new window
   fileName = getTitle();
   newFileName = fileName + " (copy)";
   run("Duplicate...", "title=[" + newFileName+"]");
   selectWindow(newFileName);

   //---------- prepare image
   run("Enhance Contrast", "saturated=0.4");
   run("Make Binary");

   //---------- draw line and then create profile plot
   stepBy = round(height/10);
   makeLine(0,stepBy,width,stepBy);
   run("Plot Profile", "save=c:\\rls\\test.xls");


---------------------------------------------------------------------------------------------------------
This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited.


All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment.
---------------------------------------------------------------------------------------------------------