[Mesquitelist] script with mesquites

Cuong Than cvthan at cs.rice.edu
Thu Aug 14 03:16:22 PDT 2008


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.


More information about the Mesquitelist mailing list