Access terrain "alphamap 0" from code

Every terrain with textures has “Alphamap 0” texture created inside Terrain Data. I want to replace it with my own; Now, inside code, I can just:

public Texture2D,

drag-and-drop it and go on.

But I want to fully automate the process. Is there any way to get to this particular “SplatAlpha 0” texture2D inside terrainData, using just editor script?

Like, this code: http://forum.unity3d.com/threads/41249-Little-Tool-for-Replacing-the-Splatmap-download
But I want to fully automate it.

Hmm, I guess there is no easy way, still ,the name is always the same - “Alphamap 0”, maybe there is some global Editor search/get by name function can be used here? I just can’t picture it, because Alphamap 0 is located under terrainData, which is “.asset” file, so I can’t use it in path.