
877
Adobe Photoshop, Fireworks, and Bridge Integration
24
3. After the user has filled in the dialog box and clicked OK, the command begins to execute.
4. All user-supplied parameters are read and used to create a JavaScript scriptlet or function,
which serves as instructions for Fireworks.
5. If used, the scriptlet is stored on the disk.
6. Fireworks is launched with a command to run the Dreamweaver-created scriptlet or
function.
7. Fireworks processes the scriptlet or function while Dreamweaver tracks its progress via a
cookie on the user’s machine.
8. After Fireworks has finished, a positive result is returned.
The Fireworks API includes several error codes for use if problems, such as a full disk, are
encountered.
9. While tracking the Fireworks progress, Dreamweaver sees the positive result and integrates
the graphics by rewriting the DOM of the current page.
10. The dialog box is closed, and the current page is refreshed to correctly present the finished
product.
To successfully control Fireworks, you need a complete understanding of the Fireworks DOM and its
extension capabilities. Adobe provides documentation for extending Fireworks from its support site:
www.adobe.com/support/fireworks.
The History panel in Fireworks is useful—especially the Copy Command To Clipboard
function. To see the underlying JavaScript used to create an object in Fireworks, first
make t