Re: Macro Question
Posted by
Wayne Rasband on
Aug 24, 2005; 2:24pm
URL: http://imagej.273.s1.nabble.com/Macro-Question-tp3704978p3704979.html
> I was wondering if it is possible to save the content
> of a variable in a macro to the next
> run of it.
>
> I need this because I want to process some images and
> save different ROIs as XY data.
> It would speed up the process if I could just press a key
> and a macro calls the "save as XY" (that´s no problem) but
> inserts by itself the path and an increasing number to the
> filename like data001.txt -> data002.txt and so on.
>
> So I am searching a possiblility to store the path and an
> integer in variables (increasing the integer after every save
> action) but without loosing the values after the termination of the
> macro.
>
> I have looked through the examples but maybe I overlooked
> something or maybe it is not possible at all.
Use global variables. There is an example at
http://rsb.info.nih.gov/ij/developer/macro/macros.html#variables-wayne