getArgument() equivalent for installed macros?
Posted by
Bill Christens-Barry-2 on
Jan 18, 2017; 3:19pm
URL: http://imagej.273.s1.nabble.com/getArgument-equivalent-for-installed-macros-tp5017917.html
In ImageJ I would like to pass a value from a macro in a text window to a macro that has been installed.
The runMacro(name, arg) command will pass an argument to a macro that will be run from a file, and this argument can be handled in the called macro using the getArgument() command. But this entails opening the file containing a called macro, rather than running an already installed macro. Since I want the calling macro itself to NOT be installed (it will be run from a text window using the "Macros>Run Macro" menu item, it's not possible to use a global variable to pass this value.
I haven't found a comparable operation to pass values to an installed macro. Is there a suggested way of doing this?
Thanks.
Bill Christens-Barry
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html