Login  Register

Scripting

Posted by Tom Larkworthy on Jul 12, 2006; 1:47am
URL: http://imagej.273.s1.nabble.com/Scripting-tp3702201.html

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

I am piecing together functionality from a wide variety of sources of ImageJ
plugins. The plugin writers normally hide their state variables and there is
not usually programmatic access without changing the source code i.e. the
only way to use their plugins is through the GenericDialog and therfore User
interaction (I want to automate a lot of stuff). I really don't want to keep
adding other peoples altered source code to my repository if possible. I
thought perhaps there might be a sly way of forcing the GenericDialog to
return answers you set pogrammatically beforehand, stopping the dialog ever
appearing when another plugin is called. (just had a 2nd look, and I don't
think it is possible)

Anyone have any other ideas? One strategy could be the Robot, but if anyone
knows a slicker way I would be grateful.

Tom