Fireworks MX 2004 lets you extend functionality and automate tasks by creating commands that combine JavaScript extensibility API with interfaces from Macromedia Flash MX 2004. JavaScript API enables you to reduce 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.
For more on working with JavaScript extensions, see Chapter 12, "Expanding Dreamweaver and Using Third-Party Software," page 263.