Hmm. Tricky.
The only thing that pops into my head is to create a boolean that gets set to one after completion of the last FRAME and have a component monitor its value. It then might be possible use the SendKeys method to close the .avi window and then activate the Save As button on the Animation dialog ...
Stuart
PS. This type of scenario is one of the reasons why I have LONG standing feature request to have programmatic animations. The current system is excessively mandraulic; another one of Mathsoft's Good Workaround Quickfix Ideas that gave some facility but should have been dragged screaming and fighting into at least the 19th century in the next iteration!