[Mesquitelist] script with mesquites

Michel Laurin michel.laurin at upmc.fr
Thu Aug 14 06:41:16 PDT 2008


Hello Than,

	For this, you don't need to script at 
all. Just use the menus to ask Mesquite to create 
a new block of trees, or to create a group of 10 
taxa. Why would you want to write a script if the 
command is available, already? Of course, that 
might occur as part of a larger script. Is this 
what you want to do? If you need more info on the 
menus, just write to me off-list. And if you do 
need to script, I will have to led others anwer 
because I haven't mastered that either.

	Best,

	Michel

>Hello all,
>
>I have a very hard time using the scripting language of Mesquite. I
>don't think the documentation on it is good and detailed. Here are some
>problems I don't know to deal with, and I hope some of you can help me.
>
>- How can change the object to which I will send command to? As I know
>from the documentation, it can be done with a 'tell' command. However,
>this simply doesn't work in many cases. For example, I want to create a
>block of trees, and I send the following script to Mesquite:
>
>     tell mesquite.trees.SimulatedTreeBlocks.SimulatedTreeBlocks;
>        setNumberTrees 10;
>     endTell;
>
>Mesquite says it cannot execute the script returns a null object.
>
>- In another script, I want to create a group of 10 taxa:
>
>     getEmployee #mesquite.minimal.ManageTaxa.ManageTaxa;
>     tell It;
>         newTaxa 10 Species;
>     endTell;     
>
>
>It worked, but I don't know why.
>
>I would like to thank you in advance for your help.
>_______________________________________________
>Mesquitelist mailing list
>Mesquitelist at mesquiteproject.org
>http://mesquiteproject.org/mailman/listinfo/mesquitelist


-- 
Michel Laurin
CNRS UMR 7179
Université Paris 6 - Pierre et Marie Curie
4, place Jussieu
case 19
75005 Paris
FRANCE

tel./fax. (33 1) 44 27 36 92
http://tolweb.org/notes/?note_id=3669


More information about the Mesquitelist mailing list