Re: Calling a macro from a macro
Posted by Gabriel Landini on Aug 18, 2007; 5:22pm
URL: http://imagej.273.s1.nabble.com/Calling-a-macro-from-a-macro-tp3698575p3698577.html
On Saturday 18 August 2007, Albert Cardona wrote:
> The static ij.Macro.setOptions(String options) should be callable from a
> macro using the call() macro function. If the String options contains
> all the keys of the dialog fields, then the dialog should not show. I
> have not tested it personally though, only from java plugins.
Thanks Albert,
The idea is great, but unfortunately it does not work so far:
The follwing macro (is this the way to implement what you suggested?):
//----------
call("ij.Macro.setOptions", "Sort=Aarea Order=Ascending Redirect=stones1.JPG
Background=Black");
run("Catalogue Particles");
//----------
calls the Catalogue_Particles macro but the dialog still shows as if it is run
on its own.
Regards,
Gabriel