Create viewattachment.sh