Indesign Scripting Reference
home | search | Links
JavaScript >> Bookmark

Bookmark

A bookmark.

Bookmark Properties

Property Type Access Description
bookmarks Bookmarks read Every bookmark.
destination HyperlinkTextDestination, HyperlinkPageDestination, HyperlinkExternalPageDestination, Page read The destination this hyperlink points to.
id Long read A unique number identifying the object.
indent Long read The indent level of this bookmark.
index Long read Index of the object within its parent object.
label String r/w A label that can be set to any string.
name String r/w The name of the object.
parent Object read The parent of the object.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.

Bookmark Methods

Method Returns Description
extractLabel String Gets the content of the label associated with the specified key (name).
getElements Array of Objects Resolve the object specifier.
insertLabel Nothing Sets the content of the label associated with the specified key (name), creating the label if it does not already exist.
move Bookmark Moves the bookmark.
remove Nothing Delete the object.
showBookmark Nothing Go to the bookmark.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.