Is there a way to access the current animation clip being edited through a script?

I want to access the current animation clip being edited if the AnimateMode is set to Record. Is there any way to do this programatically through scripting?

Well, if anyone is curious, the answer is actually no. There is no public interface to the editor window for Animation.