Rendering issue with maxscript


Hi there!
Im programming a application and its in need of a plugin in 3dsmax to scan a file in a loop and then render a .max file animation.
So, I have two issue:
1- I cant scan a file in a while loop without getting in trouble with “unresponding error”
2- I cant find any animation render example (Documention is sucks!)
Im in need of a example - opensource or something can help me .
Note:Can i program my script with python?Is this easier? And which versions support python scripting?
and sorry about poor english.


why python when maxscript is easier and you can use macrorecorder ?