That sounds like a javascript function, if one exists for the "File, Save As". You may wish to check a javascript site, such as http://www.javascripts.com/ to see if anything like that has already been made.