element.nextSelectedElement
This property returns the next selected element of a selection as element. To get the first element of a selection see
document.firstSelectedElement.
MACRO MakeHotspots
DEFINE el AS Element
Select IF Type is equal to "Text"
el = activeDoc.firstSelectedElement
WHILE (Exists (el) = true )
Create Object_Info el
el.info.hotspot = "region"
el = el.nextSelectedElement
END while
END MACRO