User Guide
File manipulation functions 261
Arguments
{filePath}
• The filePath argument, which is optional, is a string that specifies the filename to which
Dreamweaver exports the template. Express the
filePath argument as a URL file string, such
as
"file:///c|/temp/mydata.txt".
Returns
Nothing.
dreamweaver.newDocument()
Availability
Dreamweaver MX.
Description
Opens a document in the current site and invokes the New Document dialog box.
Arguments
{bopenWithCurSiteAndShowDialog}
• The bopenWithCurSiteAndShowDialog argument, which is optional, has a value of true or
false. Specify true to open a document with the current site and to cause the New
Document dialog box to appear;
false otherwise.
Returns
Nothing.
dreamweaver.newFromTemplate()
Availability
Dreamweaver 3.
Description
Creates a new document from the specified template. If no argument is supplied, the Select
Template dialog box appears.
Arguments
{templateURL}, bMaintain
• The templateURL argument is the path to a template in the current site, which is expressed as
a file:// URL.
• The bMaintain argument is a Boolean value, true or false, that indicates whether to
maintain the link to the original template.
Returns
Nothing.
000_DW_API_Print.book Page 261 Wednesday, August 20, 2003 9:14 AM