title: Global preferences for AppleScript app
body: <p>Is it possible to save some kind of settings for an app create in AppleScript?</p>
  
  <p>The settings should be loaded at the beginning of the script and be saved at the end of the script.</p>
  
  <p>Example:</p>
  
  <pre><code>if loadSetting("timesRun") then
      set timesRun to loadSetting("timesRun")
  else
      set timesRun to 0
  end if
  set timesRun to timesRun + 1
  display dialog timesRun
  saveSetting("timesRun", timesRun)
  </code></pre>
  
  <p>Where the dialog would show 1 the first time running the script, 2 the second time...</p>
  
  <p>And the functions loadSetting and saveSetting would be the functions i need.</p>