Re: Making and using macros with arguments
Posted by
Michael Schmid on
Dec 03, 2010; 4:19pm
URL: http://imagej.273.s1.nabble.com/Making-and-using-macros-with-arguments-tp3686300p3686303.html
Hi Bob,
you can use the ImageJ Prefs to pass parameters between macros, but
that's not a very nice way of programming. See this previous post for
an expample:
https://list.nih.gov/cgi-bin/wa.exe?
A2=ind0909&L=IMAGEJ&P=R29962&1=IMAGEJ&9=A&J=on&d=No+Match%3BMatch%
3BMatches&z=4
Michael
________________________________________________________________
On 3 Dec 2010, at 13:38, Bob wrote:
> According to the manual for writing macros for ImageJ, I can define
> a function in the same macro file, and the macro can call it. The
> function can take arguments, which the macro can pass to it. But
> what if the function itself is general/useful/reusable enough to be
> a macro in its own right? In other words, can one write a macro
> that takes in arguments? If so, what is the syntax for writing the
> macro, and what is the syntax for calling it? I didn’t find
> anything in the manual about this possibility, but I may have
> missed it.
>
> Thanks