Greetings, I write / run a plugin that needs to run a macro, that is generated, on a ImagePlus: String macro = ... IJ.run(tmpimp, "Macro...", "code=[ "+macro+" ] stack");
The problem is if there is a error in the macro a NonblockingGenericDialog is called and then ImageJ locks up hard; ... cancel and restart. Is there a way to run a macro on an image from a plugin and if there is an error to throw an exception instead of invoking a dialog??? Thanks in advance, Fred PS: the code snipit that was considered an error was a variable subtracting a negative constant: v--1 PSS: a side note: leave the "code=" off the arguments and the Macro... call is silently ignored. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
