Login  Register

Re: Scripting

Posted by dscho on Jul 12, 2006; 1:59am
URL: http://imagej.273.s1.nabble.com/Scripting-tp3702201p3702202.html

Hi,

On Wed, 12 Jul 2006, Tom Larkworthy wrote:

> Is it possible to supply the Generic Dialog with answers before it is
> called, thus stopping it asking the user for input?

You can always do something like this:

        run("Name of the plugin", "param1=bla param2=bli");

The easiest way to set this up is to record a macro, then call a plugin
with exactly the values you want.

Of course, this works only if the plugin uses a GenericDialog.

Hth,
Dscho