title: Check csv txt file for changes before importing, if change copy to new top row of spreadsheet
body: <p>I have a google sheet that I want to list the last 10 (most recent) songs played from a radio program I use.</p>
  
  <p>The radio program updates a simple txt file with comma separated values of the one song that is currently playing.</p>
  
  <p>The thing I'm hoping to achieve with my google script is to move the entire existing list in the google sheet down a row, clear anything after the 11th row, then paste the new song details into row number 2 (just below my header row).</p>
  
  <p>The following draft script clears my sheet and imports the song info from the txt file.  It is set to run every minute.</p>
  
  <p>The problem is firstly, I don't know what script is required to cut and paste rows in the existing sheet down one row.
  Secondly, and more importantly, I only want this to happen if the song has indeed changed.  (additional note: is it possible to run script more frequently than every minute?)</p>
  
  <p><em>Here is my existing script.</em></p>
  
  <pre><code>function importCSVFromGoogleDrive() {
  
    var sheet = SpreadsheetApp.getActiveSheet();
    var range = sheet.getRange("A2:G");
   range.clearContent();
  
    var file = DriveApp.getFilesByName("commaseparatedtxttest.txt").next();
    var csvData = Utilities.parseCsv(file.getBlob().getDataAsString());
    var sheet = SpreadsheetApp.getActiveSheet();
    sheet.getRange(2, 1, csvData.length, csvData[0].length).setValues(csvData);
  
  }
  </code></pre>
  
  <p><strong>Summary of questions:</strong></p>
  
  <p>1.How to check if values in txt file have changed, and only continue if they have</p>
  
  <p>2.How to move down existing data in sheet down one row before pasting new data into row two</p>
  
  <p>3.How to run script automatically more frequently than 1minute (eg.10 secs)</p>