B.4. NumbersAlthough AppleScript and HyperTalk deal with math operations the same way (with symbols like + for addition, / for division, and so on), HyperTalk has a few keywordslike add and multiplythat simply aren't supported in AppleScript. For example, if you have a variable named myNumber in HyperTalk, you can use the following commands: add 2 to myNumber multiply myNumber by 5 AppleScript can't understand either of those commands, though. To accomplish the same job in AppleScript, you'd have to write this: set myNumber to myNumber + 2 set myNumber to myNumber * 5
|