Login  Register

Re: Macro run problem?

Posted by Juanjo Vega on Apr 07, 2011; 9:38am
URL: http://imagej.273.s1.nabble.com/Macro-run-problem-tp3685127p3685129.html

It's a bit difficult to figure out what's going wrong with your macro without having a look to it.

People use to paste small versions of their code focusing the problem, so we can debug the problematic part of it.

I don't have many new ideas about this issue, but I think that you may try to develop a plugin just for the part about that "flag" to see if you still have the same problem.

Anyway, I think it should work from the action bar as well. I call plugins from a menu in one of my plugins by using "IJ.run(..." and it works.

Hope this helps

On Apr 7, 2011, at 11:27 AM, Amelie Marzin wrote:

> Unfortunately, my macro is quite long, plus I have some difficulties to paste it (I work on a different computer, which prevent file transfert...).
>
> I tried to use IJ.runMacro(<macro>, <args>) and even IJ.run("Run ...","run=[<macrofile>]") : same problem.
>
> It seems that because my macro is not launch from from the usual frame, it doesn't get all informations...
>
> If you have any idea, it would be really useful. Even if it's not code, I can explore and test by myself !

------------------------------------------------------------
Juanjo Vega ([hidden email])

Unidad de Biocomputación. Laboratorio B-13.
Centro Nacional de Biotecnología. CNB-CSIC.
C\ Darwin, 3. Campus de Cantoblanco.
Universidad Autónoma de Madrid.
28049, Madrid, Spain.

http://www.cnb.csic.es
http://www.biocomp.cnb.csic.es

+34 91 585 4510

"Las mejores almas son capaces de los mayores vicios como de las mayores
virtudes, y aquellos que caminan despacio por el camino recto pueden
llegar más lejos que los que corren pero se apartan de él." - Discurso
del Método, René Descartes.