User Guide

40 The Design Notes API
The following example shows the Design Notes file for foghorn.gif.mno:
<?xml version="1.0" encoding="iso-8859-1" ?>
<info>
<infoitem key="FW_source" value="file:///C|sites/¬
dreamcentral/images/sourceFiles/foghorn.png" />
<infoitem key="Author" value="Heidi B." />
<infoitem key="Status" value="Final draft, approved ¬
by Jay L." />
</info>
The Design Notes JavaScript API
All functions in the Design Notes JavaScript API are methods of the MMNotes object.
MMNotes.close()
Description
This function closes the specified Design Notes file and saves any changes. If all the key/value
pairs are removed, Dreamweaver deletes the Design Notes file. If it is the last Design Notes
file in the _notes folder, Dreamweaver also deletes the folder.
Arguments
fileHandle
The fileHandle argument is the file handle that the MMNotes.open() function returns.
Returns
Nothing.
Example
See “MMNotes.set()” on page 45.
MMNotes.filePathToLocalURL()
Description
This function converts the specified local drive path to a file:// URL.
NOTE
Always call the MMNotes.close() function when you finish with Design Notes so
Dreamweaver writes to the file.
000_DW_API_Print.book Page 40 Wednesday, July 20, 2005 11:58 AM