Specifications
532
Path functions
Path functions get and manipulate the paths to various files and folders on a user’s hard disk.
These functions determine the path to the root of the site in which the current document resides,
convert relative paths to absolute URLs, and more.
dreamweaver.getConfigurationPath()
Availability
Dreamweaver 2
Description
Gets the path to the Dreamweaver Configuration folder, which is expressed as a file:// URL.
See “File Access and Multiuser Configuration API” on page 260 for information on how
Dreamweaver accesses Configuration folders on a multiuser platform.
Arguments
None.
Returns
Returns the path to the application configurations.
Example
This function is useful when referencing other extension files, which are stored in the
Configuration folder inside the Dreamweaver application folder.
var sortCmd = dreamweaver.getConfigurationPath() + ¬
"/Commands/Sort Table.htm"
var sortDOM = dreamweaver.getDocumentDOM(sortCmd);
dreamweaver.getDocumentPath()
Availability
Dreamweaver1.2
Description
Gets the path of the specified document, which is expressed as a file:// URL. This function is
equivalent to calling
dreamweaver.getDocumentDOM() and reading the URL property of the
return value.
Arguments
sourceDoc
sourceDoc
must be "document", "parent", "parent.frames[number]", or
"parent.frames['frameName']". document specifies the document that has the focus and
contains the current selection.
"parent" specifies the parent frameset (if the currently selected
document is in a frame), and
"parent.frames[number]" and
"parent.frames['frameName']" specify a document that is in a particular frame within the
frameset that contains the current document.
Returns
Either a string that contains the URL of the specified document if the file was saved or an empty
string if the file was not saved