User Guide
234 Chapter 13: Site
Arguments
fileURL
• The fileURL argument is the fully qualified URL (including the string "file://") for a
named file.
Returns
A string that contains the name of the site, if any, in which the specified file exists. The string is
empty when the specified file does not exist in any defined site.
site.getSites()
Availability
Dreamweaver 3.
Description
Gets a list of the defined sites.
Arguments
None.
Returns
An array of strings that represents the names of the defined sites, or an empty array if no sites
are defined.
site.importSite()
Availability
Dreamweaver MX.
Description
Creates a Dreamweaver site from an XML file. During import, if the folder that is specified by the
localroot attribute of the <localinfo> element does not exist on the local computer,
Dreamweaver prompts for a different local root folder. Dreamweaver behaves the same way when
it tries to locate the default images folder that is specified by the
imagefolder attribute of the
<localinfo> element.
Arguments
fileURL
• The fileURL argument is a string that contains the URL for the XML file. Dreamweaver uses
this XML file to create a new site. If fileURL is an empty string, Dreamweaver prompts the
user to select an XML file to import.
Returns
A Boolean value: true if the named XML file exists and if the site is created successfully;
false otherwise.
000_DW_API_Print.book Page 234 Wednesday, August 20, 2003 9:14 AM