Okay, how about this? How do I define, store, and recall variables in Applescript?
Generally, all you have to do is just call the variable.
set aNumVar to 37
set aTextVar to "a string"
set aListVar to {"one item",aNumVar,aTextVar}
There are operations that want a variable declared before it's used. AS will burp and you can rewrite your code. The code, error, rewrite cycle is fast enough that I've never bothered to commit the conventions to memory.
If you need to store a variable in successive runs of a script, check out properties. They can be stored over time.
Here's a second on the Apple developer web site. The AppleScript list is very active. Questions get answered straightaway.
mt