Login  Register

macro to plugin issues

Posted by jvander on Mar 24, 2006; 2:02pm
URL: http://imagej.273.s1.nabble.com/macro-to-plugin-issues-tp3703315.html

Hello,

I recorded a macro and then converted to a plug-in and got unexpected errors.  Most commands
worked but a few didn't.  For example

duplicate image worked and close image did not.

After closer examination, I figured out that the Macro to plug-in converter was incorrectly
'translating.'  For example, duplicate correctly went from

run("Duplicate...", "title=Herm_pos");

to

IJ.run("Duplicate...", "title=name1");

but close went from

close();

to

IJ.close();

but should have been

IJ.run("Close");

Am I doing something wrong in making the conversion?   To create a plug-in, I record a macro,
run it and then choose "convert to plug-in".

Or is this a problem with the converter?

I am running ImageJ 1.34s Java 1.4.2_09 on Mac OS 10.4.5

thanks,

Joe van der Gracht