Description
This function launches the file comparison tool that the user installed in the Diff section of the Preferences dialog
box.
Arguments
file1, file2
• The
attribute, which is required, is a string that contains the full path to the first file to compare.
file1
• The
attribute, which is required, is a string that contains the full path to the second file to compare.
file2
Returns
Nothing.
Example
The following example compares two files, red.htm and blue.htm:
dw.compareFiles(hc:\data\red.htm", "e:\data\blue.htm");
dreamweaver.loadSitesFromPrefs()
Availability
Dreamweaver 4.
Description
Loads the site information for all the sites from the system registry (Windows) or the Dreamweaver Preferences file
(Macintosh) into Dreamweaver. If a site is connected to a remote server when this function is called, the site is
automatically disconnected.
Arguments
None.
Returns
Nothing.
dreamweaver.saveSitesToPrefs()
Availability
Dreamweaver 4.
Description
Saves all information for each site that the user has defined to the system registry (Windows) or the Dreamweaver
Preferences file (Macintosh).
Arguments
None.
Returns
Nothing.
DREAMWEAVER CS3
196
API Reference