How might I save a variable between Applescript runs?
Add a property declaration at the start of your script. Changes to that property during the execution of your script will be saved and available the next time you execute.


  The value set by a property definition is not reset each time the script is run; instead, it persists until the script is recompiled. [src]