No, globals are not saved between runs, but maybe you're saving
some sort of preference?
I do wish I could get that straight.
I once thought that only properties were saved but other posts on
this list lead me to conclude that globals ARE saved, perhaps only
if they appear in the main part of a script. I now ALWAYS
initialize globals specifically.
I did this earlier today:
--
global gtest
set gtest to 1
display dialog "first: " & gtest
set gtest to gtest + 1
display dialog "second: " & gtest
--
Saving it as an application, it behaves as I would expect: counting 1
and 2 on every single run.
It would indicate globals are not saved, at least the value ignored -
as opposed to if it has been declared as a property in the first line.
I am a bit confused about this as I have seen several claims globals
are saved.