logo       

macro to plugin issues: msg#00235

java.imagej

Subject: macro to plugin issues

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise