ExtendScript is buggy, unsupported, and only partially documented. What docs there are are confusing, and there are only a handful of sample applications. I spent a lot of time automating a single-source build with ExtendScript, and then one day the script stopped working for no apparent reason.
If you need to script FrameMaker, buy FrameScript. The documentation is decent, and there's a helpful support forum.
