title: AppleScript : incrementing and reseting after a day
body: <p>I have an AppleScript saved as an app, I run it a few time a days, and I want to added a counter.</p>
  
  <pre><code>property currentCount : 0
  increment()
  
  on increment()
      set currentCount to currentCount + 1
      display dialog "Count is now " &amp; currentCount &amp; "."
  end increment
  </code></pre>
  
  <p>This is adding 1 each time the script is running even if I close and open it again, but how can I reset it ?</p>
  
  <p>I mean the goal is to count the number of "case" every day and then start over the day after.</p>
  
  <p>How can I just reset automatically the next day ?</p>
  
  <p>Cheers</p>