running a plugin from a macro

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

running a plugin from a macro

chris elliott
Hi, I'm not sure about passing the path to a plugin:

the macrorecorder gives this:
run("MTrack2 ", "minimum=1 maximum=999999 maximum_=10 minimum_=2 save
save=Q:\\Julia_rpt\\marina\\binary\\trackresults.txt");

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");

I noted wayne's suggestion for run("AVI... ", "compression=Uncompressed
frame=0.1 save=&path2"); which works fine (2 lines above)
Is there a better way to pass the path for the output file for Mtrack2?
chris
Reply | Threaded
Open this post in threaded view
|

Antwort: running a plugin from a macro

Joachim Wesner
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 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Antwort: running a plugin from a macro

Du, Guanghua
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 
> ______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

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

Joachim Wesner
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 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

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

chris elliott
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 
> ______________________________________________________________________