Selecting Objects

deselectAll(...)
deselectAll()

Deselects all objects in the whole document.

getSelectedObject(...)
getSelectedObject([nr]) -> string

Returns the name of the selected object. "nr" if given indicates the number of the selected object, e.g. 0 means the first selected object, 1 means the second selected Object and so on.

moveSelectionToBack(...)
moveSelectionToBack()

Moves the current selection to the back.

moveSelectionToFront(...)
moveSelectionToFront()

Moves the current selection to the front.

selectionCount(...)
selectionCount() -> integer

Returns the number of selected objects.

selectObject(...)
selectObject("name")

Selects the object with the given "name". If what you wish to do is to paste a copy of the object to another page, you must first copyObject(), then pasteObject(). See Manipulating Objects