O'Reilly logo
  • Jayakumar Krishnankutty thinks this is interesting:

because x doesn't need initializing


Cover of AppleScript: The Definitive Guide, 2nd Edition


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.