x doesn't need initializing
This is true only if "property x : 5" is used. If "set x to 5" is used instead of the property statement, the dialog box displays "6" every time you run the script. In most cases, you DO NOT want your program to remember its previous state. I would always remember to NOT use "property," use "set" instead to initialize a variable. This is because I always want my program to start from clean state, each time it is run.
Share this highlighthttp://www.safaribooksonline.com/a/applescript-the-definitive/19849997/