Specifications
Chapter 25302
FWLaunch.optimizeInFireworks()
Availability
Dreamweaver 2, Fireworks 2
Description
Launches a Fireworks optimization session for the specified image.
Arguments
docURL, imageURL, {targetWidth}, {targetHeight}
• The first argument is the path to the active document, which is expressed as a file:// URL.
• The second argument is the path to the selected image. If the path is relative, it is relative to
docURL.
• The third argument, if supplied, is the width to which the image should be resized.
• The fourth argument, if supplied, is the height to which the image should be resized.
Returns
Zero, if a Fireworks optimization session successfully launches for the specified image; otherwise,
a nonzero error code that indicates one of the following errors occurred:
• Invalid usage; docURL, imageURL, or both are specified as null or an empty string.
• File I/O error; Fireworks cannot create a response file because the disk is full.
• Error notifying Dreamweaver that the user is not running a valid version of Dreamweaver
(2 or later).
• Error launching Fireworks process; the function does not launch a valid version of Fireworks
(2 or later).
• User cancelled the operation.
FWLaunch.validateFireworks()
Availability
Dreamweaver 2, Fireworks 2
Description
Looks for the specified version of Fireworks on the user’s hard disk.
Arguments
{versionNumber}
The argument is a floating-point number that is greater than or equal to 2; it represents the
required version of Fireworks. If this argument is omitted, the default is
2.
Returns
A Boolean value that indicates whether the specified version of Fireworks was found.