A function for saving a file sent to IE with a particular filename. Supports only the case where IE opens up the "save file" ribbon.

Func SaveSentFile($filename)

   Send("!n{TAB}{DOWN}{DOWN}{ENTER}") ; Navigate to save/open ribbon -> Save -> Save As
   Sleep(2000) ; Wait for Save dialog to appear.

   Send($fileName) ; Enter the full file path in the Save dialog.
   Send("{ENTER}") ; Submit it.
   Sleep(2000) ; Wait for save to finish.

   Send("!n{ESC}") ; Close ribbon (save/open ribbon -> [X])