Re: Antwort: Re: Antwort: running a plugin from a macro

Posted by chris elliott on
URL: http://imagej.273.s1.nabble.com/running-a-plugin-from-a-macro-tp3689642p3689646.html

Thanks, but Wayne's message pointed me in the right direction, it was a
missing ; on the preceding line that gave the error, imagej was quite
happy with the proposed filename

chris

Joachim Wesner wrote:

> Yep, respectively, can put even if I think that the singel >'< causes the
> problem with the apparently missing ";", it is also true that you cannot
> simply have several "xxx=..." parameters and spaces,
> it will not be able to tell what goes where, however, IIRC you CAN put
> parameter strings with spaces in "[]" brackets, I seem to remember that´s
> what the macro recorder does, try to play around a bit!
>
> Mit freundlichen Grüßen / Best regards
>
> Joachim Wesner
> www.leica-microsystems.com
>
>
>
>                                                                            
>              Guanghua Du                                                  
>              <[hidden email]>                                                
>              Gesendet von:                                              An
>              ImageJ Interest            [hidden email]                
>              Group                                                   Kopie
>              <[hidden email].                                            
>              GOV>                                                    Thema
>                                         Re: Antwort: running a plugin from
>                                         a macro                            
>              20.01.2010 08:49                                              
>                                                                            
>                                                                            
>               Bitte antworten                                              
>                     an                                                    
>               ImageJ Interest                                              
>                    Group                                                  
>              <[hidden email].                                            
>                    GOV>                                                    
>                                                                            
>                                                                            
>
>
>
>
> I would say (but I am not sure) the reason for that problem is the
> parameters should not contain any space, since path4 contains several
> space in between, you can try a file name without a space.
>
> guanghua
>
> Joachim Wesner wrote:
>> Hi Chris,
>>
>>> but when i run it with
>>> run("MTrack2 ", "minimum=6 maximum=999999 maximum_=10 minimum_=2 save
>>> save=&path4");
>>> debugger says the path is (as expected):
>>> path4    "Q:\Julia_rpt\marina\binary\HL3 30' 1 uncomp.xls"
>>> I get an error:
>> ';' expected in line 24
>>> <run> ("MTrack2 ", "minimum=6 maximum=999999 maximum_=10 minimum_=2 save
>>> save=&path4");
>>
>> What about the single quote >'< in path4?
>>
>>
>> Mit freundlichen Grüßen / Best regards
>>
>> Joachim Wesner
>> www.leica-microsystems.com
>>
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________