Login  Register

Re: save all opened images and changing their name

Posted by Herbie on Apr 20, 2016; 1:27pm
URL: http://imagej.273.s1.nabble.com/save-all-opened-images-and-changing-their-name-tp5016055p5016194.html

Inesica,

evidently you didn't follow my suggestion.
Why?

Here is the example code again:
//----------------------------------------------------
name = "Stack_Reg-0002";
number = parseInt( replace( name, "Stack_Reg-", "" ) );
number--;
if ( number < 10 ) { name = "z000"; } else { name = "z00"; }
name += "" + number + "_t0000";
print( name );
//----------------------------------------------------

Best

Herbie

:::::::::::::::::::::::::::::::::::::
Am 20.04.16 um 14:52 schrieb inesica:

> Thank you very much!
>
> However, when I convert my files, the first one is not z0000_t0000
> but z0001_t0000. can the program be written otherwise? or how can i
> then convert all my files from z0001_t0000 to z0000_t0000;
> z0002_t0000 to z0001_t0000 etc?
>
> Thank you!
>
>
>
> -- View this message in context:
> http://imagej.1557.x6.nabble.com/save-all-opened-images-and-changing-their-name-tp5016055p5016193.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html