After some reading of various scripts I decided to have a play, but I'd suggest running it past the guys / gals in the SDK part of the forum.
## edited ## if you try this on your own file - always use a copy of your file never the original ## end edit ##
The attached file is just an example and something to think about (I'm not very good with VBS) it's a simply movement + constraint movement, the reason for the 4 to 4 movement 0,0,0, is because TC is running the script before the animation frame, so if it was left as 0 - 3 then the last movement wouldn't be saved.
BUT I had problems in v19 (not in my v21 which it was originally done in) in that the constraints break, and TC changes the file to the last one saved, (in v21 the original file is still open), this needs keeping an eye on to ensure your not working on the wrong file, it may be my v19 which is faulty I don't know.
There is no error checking (need adding) which means that the SaveCopyAs command will overwrite any file it finds with the same name, whether you want it to or not, also the Set commands would normally be outside the sub, but that also caused problems, because AnimLab is running the script prior to actually running the animation so it hits the 'Set dwng = nothing when it still wants to run the script again for the animation - at least that what it appears to do.
Obviously your path will need to be entered, the one in the file is just where I saved them, a folder on C: called TC files, and sub folder called AnimSaveTest.
As I say it may be better checking in the SDK forum to see if anyone thinks it may cause expected problems and for error checking, especially having the set commands running in the sub, hope your v19 works better than mine.