Hi Mike,
you can use
Interpreter.isBatchMode()
Michael
________________________________________________________________
On 25 Jun 2009, at 12:13, Michael Doube wrote:
> Hi all,
>
> I have a plugin that automatically calculates default values then
> presents them to the user in a dialog before running. The defaults
> are dependent on image dimensions and voxel size. If I run the
> plugin from a macro, I can enter the variables as a string.
> However, if I want to run the plugin over all different-sized
> images in a directory, reusing the same default values is not
> appropriate.
>
> Is there some way to make a plugin aware that it is being called
> from a batch mode macro and use its own calculated values? The way
> I thought of was to put a check box in the dialog that would
> prevent the variables from being updated by the macro.
>
> Mike