Specifications

659
dreamweaver.popupCommand()
Availability
Dreamweaver 2, deprecated in 3 in favor of dreamweaver.runCommand().
Description
Executes the specified command. To the user, the effect is the same as choosing the command
from a menu; if a dialog box is associated with the command, it appears. This function provides
the ability to call a command from another extension file. It blocks other edits until the user
dismisses the dialog box.
Note: This function can be called only within objectTag() or in any script in a command or Property inspector file.
Arguments
commandFile
commandFile
is the name of a command file within the Configuration/Commands folder (for
example,
"Format Table.htm").
Returns
Nothing.
dreamweaver.setSelection()
Availability
Dreamweaver 2, deprecated in 3 in favor of dom.setSelection().
Description
Sets the selection in the current document. This function can move the selection only within the
current document; it cannot change the focus to a different document.
Arguments
offsetBegin, offsetEnd
The arguments are the beginning and end points, respectively, for the new selection, which is
expressed as byte offsets into the documents source code. If the two numbers are the same, the
new selection is an insertion point. If the new selection is not a valid HTML selection, it is
expanded to include the characters in the first valid HTML selection. For example, if
offsetBegin and offsetEnd define the range SRC="myImage.gif" within <IMG
SRC="myImage.gif">
, the selection expands to include the entire IMG tag.
Returns
Nothing.
dreamweaver.templatePalette.deleteSelectedTemplate()
Availability
Dreamweaver 3, deprecated in Dreamweaver 4 in favor of using
dreamweaver.assetPalette.setSelectedCategory() with the “templates” argument, then
calling
dreamweaver.assetPalette.removeFromFavorites().
Description
Deletes the selected template from the templates folder.