finished the script for saving an email attachment.