Getting the mesh of another object

I would like to get the mesh of the game object “Cube” from a javascript attached to the game object “Sphere”. I have searched the docs and tried several variations with no luck.

This is the script attached to “sphere”;

   var target = GameObject.Find("Cube"); 
   var mesh : Mesh = target.GetComponent(MeshFilter).mesh;

This gets the mesh of “Sphere” (the object the script is attached to), instead of the mesh “Cube”. Not sure what is going on. Can anyone help please?

is target definatly finding cube?
Add a Debug.Log inbetween to log what target is.
Also, for good practice, use the generic form for getcomponent
http://docs.unity3d.com/Documentation/Manual/GenericFunctions.html