Login  Register

Re: How to use a plugin with duplicate dialog keywords in a macro?

Posted by John Alexander-7 on Jul 13, 2008; 10:30pm
URL: http://imagej.273.s1.nabble.com/How-to-use-a-plugin-with-duplicate-dialog-keywords-in-a-macro-tp3695605p3695606.html

Sorry, I figured out you can be more descriptive in passing arguments.
The following works:

run("Intensity Correlation Analysis", "Channel_1=image-red
Channel_2=image-green Channel_Combination=[Red : Green] use=None use
crosshair=3");




John Alexander wrote:

> Hi group,
>
> So I am writing a macro that is going to batch perform the Image
> Correlation Analysis plugin on all open images.
>
> The difficulty I am having is that the dialog window asks for an image
> for channel 1 and channel 2 and the channel combination, but apparently
> there was no preceding underscore for the channel 2 or channel
> combination dialog boxes, so I get a "duplicate keyword" error.
>
> My macro doesn't seem to work with the following:
> run("Intensity Correlation Analysis", "channel=image-red
> channel=image-green channel=[Red : Green] use=None use crosshair=3");
>
> I get image-red is not a valid choice for channel combination, which is
> the third dialog option.
>
> Does that make sense?
>
> I need to find a work around ...
>
> John
>

--
John K. Alexander, Ph.D.
Post-Doctoral Fellow
William Green Laboratory
University of Chicago
Dept. Neurobiology, Pharmacology, and Physiology
947 East 58th Street
Abott Hall 402
Chicago, IL 60637
(off) 773-702-9386
(fax) 773-702-3774
[hidden email]