title: How to choose what file to take when using function unzipGmail1(){ in app script
body: <p>Trying to import a zipped file and choose a certain .CSV inside. How do I ask the script too search for the CSV by name and not number?</p>
  <pre><code>function unzipGmail1(){
      var threads = GmailApp.search('subject:&quot;XXXXX&quot;');
      var message = threads[0].getMessages();
      var blobs =  message[message.length - 1].getAttachments()[0].copyBlob();
        blobs.setContentTypeFromExtension();
      var unzippedFile = Utilities.unzip(blobs);
      var filename = unzippedFile[0].getName();
      var contentType = unzippedFile[0].getContentType();
      var csv = unzippedFile['decay vehicle list'];
      var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;XXXX&quot;);
     var csvData = Utilities.parseCsv();
  
          // Remember to clear the content of the sheet before importing new data
    sheet.getRange(&quot;A1:AO&quot;).clear();
          sheet.getRange(1, 1, csvData.length, csvData[0].length).setValues(csvData);
  }
  </code></pre>