Specifications
The Design Notes API 291
The argument is the path to a local file, which is expressed as a file:// URL.
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
Opens the Design Notes file that is associated with the specified file or creates one if none exists.
Arguments
filePath, {bForceCreate}
• The first argument is the path to the main file with which the Design Notes file is associated,
which is expressed as a file:// URL.
• The second argument is a Boolean value that indicates whether to create the Note even if
Design Notes is turned off for the site or if
filePath is not associated with any site.
Returns
The file handle for the Design Notes file or zero if the file was not opened or created.
Example
See “MMNotes.set()” on page 292.
MMNotes.remove()
Description
Removes the specified key (and its value) from the specified Design Notes file.
Arguments
fileHandle, keyName
• The first argument is the file handle that MMNotes.open() returns.
• The second argument is a string that contains the name of the key to be removed.
Returns
A Boolean value that indicates whether the operation is successful.