You need to look into the shader code to find the texture property id, then use Material.SetTexture to change it.
Properties are usually listed at the very top and usually prefixed with an underscore.
“_MainTex” for example.
Also, try clicking on the little cog in the top right of the inspector and selecting debug and you can actually inspect values within the shader without having to open it up in monodevelop.