dreamweaver.assetPalette.getSelectedItems()
Availability
Dreamweaver 4.
Description
Returns an array of the selected items in the Assets panel, either in the Site or Favorites list.
Arguments
None.
Returns
An array of the following three strings for each selected item:
• The
string, which is the name/filename or nickname that appears in the Assets panel.
name
• The
string, which is the full path, full URL, or color value, depending on the selected item.
value
• The
string, which is either
type
,
,
"images"
"movies"
"shockwave"
Note: If nothing is selected in the Assets panel, this function returns an array that contains one empty string.
Example
If URLs is the category, and a folder MyFolderName and a URL MyFavoriteURL are both selected in the Favorites
list, the function returns the following list:
items[0] = "MyFolderName"
items[1] = "//path/FolderName"
items[2] = "folder"
items[3] = "MyFavoriteURL"
items[4] = "http://www.MyFavoriteURL.com"
items[5] = "urls"
dreamweaver.assetPalette.getSelectedView()
Availability
Dreamweaver 4.
Description
Indicates which list is currently shown in the Assets panel.
Arguments
None.
Returns
Returns a string that has a value of either
dreamweaver.assetPalette.insertOrApply()
Availability
Dreamweaver 4.
or one of the following categories:
"folder"
,
,
"flash"
"scripts"
or
"site"
"favorites"
"templates"
,
, or
.
"colors"
"urls"
.
DREAMWEAVER CS3
API Reference
,
,
"library"
273