title: Use Script to Email Specific Tab
body: <p>I want to e-mail an individual sheet tab as a PDF using script.  This script below will send the entire workbook/sheet as a PDF file (which is a great start, but not ideal).  However, I am only interested in e-mailing the specific sheet tab named &quot;Alpha&quot;.</p>
  <pre><code>function sendpdf() {
     var originalSpreadsheet = SpreadsheetApp.getActive();
     var message = 'Hello, \n\n' + 'Attached is the priority list for today.';
     var subject = &quot;Priority List for - &quot; + new Date().toString();
     var emailTo = &quot;first@example.com,second@example.com&quot;;
     var pdf = DriveApp.getFileById(originalSpreadsheet.getId()).getAs('application/pdf').getBytes();
     var attach = {fileName:'PRIORITY.pdf',content:pdf, mimeType:'application/pdf'};
  MailApp.sendEmail(emailTo, subject, message, {attachments:[attach]});
  }
  </code></pre>