Variable in duplicate command

Posted by PEARSON Matthew on
URL: http://imagej.273.s1.nabble.com/Variable-in-duplicate-command-tp5007378.html

Hi all,

I want to duplicate a certain number of frames within a stack using  
the Image>duplicate command in a macro but the range of frames i want  
duplicated are stored as variables, i don't want to refer to specific  
numbers.  How can i insert a range between one variable and another  
instead of 1-41, i have done this before but can't remember.  
Something like range="var1"-"+var2); or do you use "&" before each  
variable?
Here's the original without variables:
run("Duplicate...", "title=[1 25.ome-1.tiff] duplicate range=1-41");

Thanks,

Matt








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

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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