The Design Notes JavaScript API
55
MMNotes.getVersionNum()
Description
This function gets the version number of the MMNotes shared library.
Arguments
None.
Returns
A string that contains the version number.
MMNotes.localURLToFilePath()
Description
This function converts the specified file:// URL to a local drive path.
Arguments
fileURL
•
The
fileURL
argument, which is expressed as a file:// URL, is the path to a local file.
Returns
A string that contains the local drive path for the specified file.
Example
A call to
MMNotes.localURLToFilePath('file:///MacintoshHD/images/moon.gif')
returns
"MacintoshHD:images:moon.gif"
.
MMNotes.open()
Description
This function opens the Design Notes file that is associated with the specified file or creates one if
none exists.
Arguments
filePath
,
{bForceCreate}
•
The
filePath
argument, which is expressed as a file:// URL, is the path to the main file with
which the Design Notes file is associated.
•
The
bForceCreate
argument is a Boolean value that indicates whether to create the note even
if Design Notes is turned off for the site or if the
filePath
argument is not associated with
any site.
Returns
The file handle for the Design Notes file or 0 if the file was not opened or created.
Example
See
“MMNotes.set()” on page 56
.
000_DW_API_Print.book Page 55 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...