About scripting with JavaScript
You can reduce the tedium of some repetitive tasks by writing your own JavaScript in a text editor to run within Fireworks. You can control nearly every command or setting in Fireworks through JavaScript.
Adobe Dreamweaver also uses JavaScript. You can write scripts that control Fireworks from within Dreamweaver.
For documentation on the JavaScript API, see Extending Fireworks.