How To Cross Reference a Texture2D

Maybe be Im looking at this wrong, but I cant seem to figure out how to assign a variable to a Texture2D from another script.

Basically, Im taking a snapshot of the screen and saving it to a variable. I want to take that saved picture variable and reference it to another variable from another script. Does anyone know how to make that happen?

http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

Assuming both scripts are attached to the same Game Object:

Script1.js

var myTexture : Texture2D;

Script2.js

    function Start()
    {
        var otherScript : Script1 = GetComponent( Script1);
        otherScript.myTexture = newTexture2D;
    }

Script1.cs

public Texture2D myTexture;

Script2.cs

void Start()
{
    Script1 otherScript = GetComponent<Script1>();
    otherScript.mytexture = newtexture2D;
}

You could also set the variable as static, which means there is only one instance of that variable across the whole application, and anything that inherits from the base class will still only have access to that one instance. Depending on how your application is set up, you may not want to do this as it can be dangerous coding unless you specifically set it up to be that way.