Problems with macros

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with macros

Gonzalo Bouchet
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with macros

ctrueden
Hi Gonzalo,

> Somebody gave me this macro

Did they give it to you via email? If so, it is likely that the problem is
an extra line break in the middle of a command. You can fix it yourself, or
else have them send it to you again as an attachment instead of pasted
inline.

> when I run it an error appears: ')' expected in line 27 <show>=nothing
> display clear include summarize add") ;"

Try writing the run("Analyze Particles...") command all on one line:

run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=Nothing
display clear include summarize add");

(If your mail reader split the line above, put it back together onto one
line.)

HTH,
Curtis


On Sat, Aug 11, 2012 at 6:06 PM, Gonzalo Bouchet
<[hidden email]>wrote:

> Hi! Somebody gave me this macro:
>
>
> //open file and get name
> open();
> imgName=getTitle();
> run("Colour Deconvolution", "vectors=[H DAB]");
>
> //close windows we don't need
> selectWindow(imgName + "-(Colour_3)");
> close();
> selectWindow(imgName +"-(Colour_1)");
> close();
> selectWindow("Colour Deconvolution");
> close();
>
> //select window containing DAB stain and do an interactive threshold
> selectWindow(imgName + "-(Colour_2)");
>
> run("Threshold...");
> waitForUser("adjust Threshold");
> if (isOpen("Threshold")) {
>      selectWindow("Threshold");
>      run("Close" );
> }
>
> run("Convert to Mask");
> //analyse stain area
> run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00
> show=Nothing display clear include summarize add");
>
>
> But when I run it an error appears: ')' expected in line 27 <show>=nothing
> display clear include summarize add") ;"
>
> I don't know much about the macro language, I'll be grateful if somebody
> can
> help me
>
>
>
> -----
> Gonzalo Bouchet
> School of Pharmacy and Biochemistry
> Universidad de Buenos Aires
> Argentina
> --
> View this message in context:
> http://imagej.1557.n6.nabble.com/Problems-with-macros-tp4999742.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Problems with macros

Gonzalo Bouchet
CONTENTS DELETED
The author has deleted this message.