title: How to open a PDF attachment
body: <p>Here is my problem: I have succesfully written a script to send a PDF attachment of a google worksheet. However, to print the file I have to open the attachment in the mail from the mailbox. I wonder whether it is possible to show the PDF directly after sending the email, so I can print is with File>Print command. Below is the part of the script that creates and sends the attachments:</p>
  
  <pre><code>var auth = "AuthSub token=\"" + AUTH_TOKEN + "\"";
  var res = UrlFetchApp.fetch(url, {headers: {Authorization: auth}});
  var attachments = [{fileName:"GASgenerated.pdf", content: res.getContent(),  mimeType:"application/pdf"}];
  MailApp.sendEmail(email, subject, body, {attachments:attachments});
  </code></pre>
  
  <p>So my question is: How can I open file "GASgenerated.pdf" in this script immediately after the MailApp.sendEmail command, so I can directly print the file?</p>