change all `properties` to `global variables`

This *should* fix the compile problem. As per Apple's AppleScript Language Guide:
>If you don’t want the value associated with an identifier to persist after a script is run but you want to use the same identifier throughout a script, declare a global variable and use the set command to set its value each time the script is run.
rename test script