Changing variable on diffirent gameobject than that the running script is attached to.

Alright guys i’m a bit stumped and i hope you guys can help me out.
I have a script that creates about 7500 prefab objects and i use an XML file to decide the material and the scale. So what i currently do is on startup i run one script that sets all the object their materials and scales. But i want to change the XML file on runtime so that i can switch between datasets ingame. So what i did was i called on the script again with a diffirent XML file, and that works fine and all. But because of the size of the XML file it takes about 20seconds to run through that again. So what i want to do is run all the XML scripts on startup and save the values inside a script attached to the prefab object. So i need a way to send the variable created in one script to the specific gameobject’s script. So do you guys have any ideas on this one?

Many thanks, Woox

This is covered in the docs: http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html