A simple script which adds up the numbers in objects and makes a new object with the total, for the OmniGraffle drawing package.
Latest version: More sensible about finding numbers in a shape's text. (2006-02-27)
If you run the script once, then change some numbers, and you've not deleted the shape that the first run created, then the total in the shape is simply updated. (I'm frightfully proud of this.)
If some shapes are selected then only those shapes are considered in the total.
Only the last number found in a shape will be used for the addition. All of the following texts would be considered to have the value of 25:
25
Total: 25
Item 3: 25
24.5 25
...that's about all there is. This script doesn't really lend itself to exciting pictures.
© 2024 — 83957jgtyd@liamekaens.com