FreeMind supports scripting in Groovy. It's cool, though definitely a new-new feature without much in the way of help. You'll need to download the FreeMind source to figure out what you can do, the example scripts on the wiki give a flavor but don't answer enough questions, and the javadocs on the site are for the old version, not for the current beta version.
Below is a script to total all the values in child nodes. For example if your nodes all have an attribute called "price", you simply install this script in an attribute called "script" on the root node (or any node for that matter), hit Alt-F8 to run the script, and if you've defined a "price-total" attribute on the node with the script, "price-total" will be filled in with the actual total of all the price attributes. This is my first real code in Groovy, so please pardon any gaffes. I defined a few helper functions, since the attributes API is a bit cranky to work with: