Accessing component guiTexture

GetComponentInChildren(guiTexture);

This returns an error, although guiTexture is listed as being a component type.

Basically I’m looking to write a generic script that can display a number, then alter the background width on the number to match the width of the number, so I’d like to access the pixelInset.width of the GUITexture that is a child of the GUIText.

If you are using C# then the correct way to call this method is to mention the type:

 GUITexture guiTex = GetComponentInChildren<GUITexture>();

hmm, something like this for JS?

var guiTex : GUITexture  = GetComponentInChildren(GUITexture);

I gave up and used GUILayout, but still would be nice to know a working method.