Re: Macro command for renaming results durign saving
Posted by
Thomas Boudier on
Sep 01, 2008; 8:55am
URL: http://imagej.273.s1.nabble.com/Macro-command-for-renaming-results-durign-saving-tp3695205p3695206.html
Hi Kashif,
Why not rename the file :
File.rename(path1, path2) - Renames, or moves, a file or directory.
Returns "1" (true) if successful. The file or directory must be in the
user's home directory, the ImageJ directory or the temp directory.
Requires 1.38b
Thomas
Kashif Zeeshan a écrit :
> Hello,
> I want to create a macro to change the name of results as density while
> saving them.
> Normally, I use the macro as
>
> selectWindow("Results");
> saveAs("Text");
>
> Now what should I add now in this code to have the results.xls as
> density.xls.
> Thanks in advance.
>
> Kashif ZEESHAN
>
>
--
/*****************************************************/
Thomas Boudier, MCU Université Paris 6,
UMR 7101 / IFR 83. Bat A 328, Jussieu.
Tel : 01 44 27 35 78 Fax : 01 44 27 25 08
/****************************************************/