Skip to main content
Known Participant
February 25, 2009
Question

how to select textframe(any object) by its ID?

  • February 25, 2009
  • 2 replies
  • 1802 views
very short question.
this doesn't work:
myIndi.Select myPage.PageItemID(1321)

what is right synthaxis?

thanks.
This topic has been closed for replies.

2 replies

Known Participant
February 26, 2009
more correct (as i found):
myPage.PageItems.ItemByID(1321)

many thanks, Robert
Known Participant
February 26, 2009
right ;) you work on Page ;)

robin

--
www.adobescripts.com
Known Participant
February 25, 2009
myDoc.AllPageItems.ItemByID(1321)

or

myDoc.PageItems.ItemByID(1321)

robin

--
www.adobescripts.com
Harbs.
Legend
February 28, 2009
Robert Tkaczyk wrote:
> myDoc.AllPageItems.ItemByID(1321)
>

Robin,
Are you saying allPageItems is a collection in VB?

--
Harbs
http://www.in-tools.com
Known Participant
March 1, 2009
yes

Property AllPageItems As Objects
read-only
Member of InDesign.Document
Lists all page items contained by the Document.

Property PageItems As PageItems
read-only
Member of InDesign.Document
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.

robin

--
www.adobescripts.com