User Guide

24 Chapter 2: The Fireworks Object Model
currentScriptDir
string The path to the directory of the currently
running script, which is expressed as a file://
URL (or could be
null).
This path goes to the directory in which the
script resides, not a full file path to the script
itself (it excludes the script’s filename).
currentScriptFileName
string The filename of the currently running script
(or could be
null).
This name is the script’s filename, not the
full path.
documentList array Array of the current open Document objects
(see “Document object” on page 13). If no
document is open, it returns an array of
length zero.
documents array Array of the current open Document objects
(see “Document object” on page 13). If
no document is open, returns an array of
length zero.
ellipseBCPConst float A fixed value of 0.55229187012 used to
calculate the distance between a point and
its predecessor/successor for a perfect
circle. For example, for a circle with a radius
of 100 px, the predecessor/successor is
100*fw.ellipseBCPConst pixels away from
the point itself.
files object The FilesClass object used to perform file
operations (open, close, delete, and so on).
getDynamicSWFURL string Returns the location of the SWF file.
historyPalette object History panel object. There are no DOM
properties for the History panel, only API
calls. For more information, see “History
panel functions” on page 278.
mruRecentList array Array of the most recently used documents.
platform •stringThe string "mac" if Fireworks is running on
the Macintosh, or
"win" if running on
Microsoft Windows.
progressCountCurrent
integer The first number (x) that appears in the Batch
Progress dialog box, in the “File x of y” field.
Set this property to change the number.
progressCountTotal
integer The second number (y) that appears in the
Batch Progress dialog box, in the “File x of y”
field. Set this property to change the number.
screenRect rectangle The size of the main screen on this
computer, in pixels. Useful for positioning
windows or panels.
Property Data type Notes