using open_attachment.sh for text/plain