User Guide

146 Chapter 11: Application
Each book-id entry has the following attributes:
The id attribute is the book ID that is used in the help.map and HelpDoc.js files.
The win-mapping attribute is the Windows book name, which is
"UsingDreamweaver.chm" in this example.
The mac-mapping attribute is the Macintosh book name, which is "Dreamweaver Help" in
this example.
The help.map file
The help.map file maps a help content ID to a specific help book. Dreamweaver uses the
help.map file to locate specific help content when it calls help internally.
The helpDoc.js file
The helpDoc.js file lets you map variable names that you can use in place of the actual book ID
and page string. The helpDoc.js file maps a help content ID
to an HTML page in a specific
help book. Dreamweaver uses the helpDoc.js file when it calls help from JavaScript.
Arguments
bookID
The bookID argument, which is required, has the following format:
ID:page
The ID portion is the bookID of the entry in the help.xml file that names the file that contains
the help content to display. The
page portion of the entry identifies the specific page to
display
. The pages are referenced in the help.map file.
Returns
A value of true if successful; false if Dreamweaver cannot open the specified file in the
help viewer.
Example
openHelpURL("DW_Using:index.htm");
dreamweaver.openWithApp()
Availability
Dreamweaver 3.
Description
Opens the specified file with the specified application.
Arguments
fileURL, appURL
The fileURL argument is the path to the file to open, which is expressed as a file:// URL.
The appURL argument is the path to the application that is to open the file, which is expressed
as a file:// URL.
Returns
Nothing.
000_DW_API_Print.book Page 146 Wednesday, August 20, 2003 9:14 AM