document.Save [Filename] should work. Is this VBScript or JavaScript?
I don’t know why you have this issue. You should make sure the destination folder is not write-protected. The above macros should not prompt a Save As dialog box if the folder is not read-only.