ExtendScript is so powerful that I found it unusable for FrameMaker. If it were properly documented and Adobe provided useful sample code for automating common tasks it might be great. I think they provide those for some of their other apps.