'Find Commands' does not run macros
Posted by Michael Schmid on Dec 07, 2009; 5:39pm
URL: http://imagej.273.s1.nabble.com/Find-Commands-does-not-run-macros-tp3690188.html
Hi all,
it seems that the "Plugins>Utilities>Find Commands (CTRL-L) command
does not run installed macros, even very simple ones are simply
ignored. E.g.
macro 'testmacro' {
print("testmacro running");
}
It makes no difference whether "Close when running" is selected or not.
The macro was installed correctly; e.g. this macro works
call("ij.IJ.doCommand", "testmacro");
Is there any one who understands the problem?
Maybe IJ.java, when called from the EventQueue, has for some reason
no access to the static variable ij but uses another set of static
variables? Some strange multitasking within one application?
I have tried this with:
Mac OSX 10.4.11, ImageJ 1.43m10, Java 1.5.0_19
Windows XP, ImageJ 1.42q, Java 1.5.0_09
1.42q uses AWT, 1.43m uses Swing for the "Find Commands" window; the
problem is the same.
Michael