title: How to temporarily change color of active cell using Apps Script
body: <p>So this is an interesting one...in most simple terms - I have a script that jumps me to a specific cell (based on matches in both the column and row - script below for context):</p>
  <pre><code>function Jump(){
        var ss = SpreadsheetApp.getActiveSpreadsheet();
        var s = ss.getSheetByName(&quot;In-Office&quot;); // change to sheet containing dates
        var r = s.getRange(&quot;ah1&quot;).getValue(); //change A1 to cell containing =match formula
        var row = s.getRange(&quot;ai1&quot;).getValue();
        s.setActiveSelection(s.getRange( r + row )); 
  }
  </code></pre>
  <p>I have this running from a custom menu, where the user can jump to the cell that contains today's date.</p>
  <p>I can use conditional formatting to highlight that cell, but there's been an idea I've wanted to execute in other projects and it feels now would be the time to try it out.</p>
  <p>Basically, when the cell jumps, I want the COLOR to change for 10 seconds, then reset itself.</p>
  <p>I've tried doing this with macros, but the color change is instant, so you never see it.</p>
  <p>I tried implementing a &quot;wait period&quot; similar to how you would while showing a TOAST alert, but wasn't able to figure it out.</p>
  <p>My other thought is.. setting up a conditional formatting rule through the script, delaying it for 10 seconds, then deleting it. Seems like a lot to just color the activated cell for a specific amount of seconds.</p>
  <p>Anyone ever try something like this before? Essentially, I want to flash a different color for the active cell - I think it could be applicable to many other projects as well.</p>