title: Google Apps Script Missing ) after for-loop control. (line 4, file "Code")Dismiss
body: <p>After running this script </p>
  
  <pre><code>    function followUpUnreplied() {
    // Every thread in your Inbox that is read, older than two days, and not labeled "delete me".
    var threads = GmailApp.search('label:leads---dealt-with older_than:1d newer_than:2d -{label:Conversion}');
    for (var i = 0; i &amp;lt; threads.length; i++) {
      if (threads[i].getMessageCount() &amp;lt; 2) {
      // looks like an unreplied-to message
        threads[i].addLabel(GmailApp.getUserLabelByName("Follow Up"))
      }
    }
  }
  </code></pre>
  
  <p>I receive the error message </p>
  
  <pre><code>Missing ) after for-loop control. (line 4, file "Code")Dismiss
  </code></pre>
  
  <p>I'm not a programmer - just code monkey stuff. Anyone help me out on this? Any help much appreciated :)</p>