'Find Commands' does not run macros

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

'Find Commands' does not run macros

Michael Schmid
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
Reply | Threaded
Open this post in threaded view
|

Re: 'Find Commands' does not run macros

Wayne Rasband
This bug is fixed in the 1.43n daily build.

-wayne


On Dec 7, 2009, at 12:39 PM, Michael Schmid <[hidden email]>  
wrote:

> 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