Hi Matt,
you need to put a '+' whenever you connect strings with variables. In your
example this would be like this:
run("Duplicate...", "title=[1 25.ome-1.tiff] duplicate range=" + var1 + "-"
+ var2);
cheers,
Jan
2014-04-21 18:18 GMT+02:00 Matthew Pearson <
[hidden email]>:
> 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>
>
--
CEO: Dr. rer. nat. Jan Brocher
phone: +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html