Thread View: adobe.scripting.indesign
8 messages
8 total messages
Started by Dmitry1776
Wed, 25 Feb 2009 17:11
how to select textframe(any object) by its ID?
Author: Dmitry1776
Date: Wed, 25 Feb 2009 17:11
Date: Wed, 25 Feb 2009 17:11
7 lines
750 bytes
750 bytes
very short question. this doesn't work: myIndi.Select myPage.PageItemID(1321) what is right synthaxis? thanks.
Re: how to select textframe(any object) by its ID?
Author: Robert Tkaczyk
Date: Thu, 26 Feb 2009 01:23
Date: Thu, 26 Feb 2009 01:23
10 lines
907 bytes
907 bytes
myDoc.AllPageItems.ItemByID(1321) or myDoc.PageItems.ItemByID(1321) robin -- www.adobescripts.com
Re: how to select textframe(any object) by its ID?
Author: Dmitry1776
Date: Thu, 26 Feb 2009 11:28
Date: Thu, 26 Feb 2009 11:28
4 lines
677 bytes
677 bytes
more correct (as i found): myPage.PageItems.ItemByID(1321) many thanks, Robert
Re: how to select textframe(any object) by its ID?
Author: Robert Tkaczyk
Date: Thu, 26 Feb 2009 12:26
Date: Thu, 26 Feb 2009 12:26
6 lines
856 bytes
856 bytes
right ;) you work on Page ;) robin -- www.adobescripts.com
Re: how to select textframe(any object) by its ID?
Author: Harbs
Date: Sat, 28 Feb 2009 23:54
Date: Sat, 28 Feb 2009 23:54
10 lines
883 bytes
883 bytes
Robert Tkaczyk wrote: > myDoc.AllPageItems.ItemByID(1321) > Robin, Are you saying allPageItems is a collection in VB? -- Harbs http://www.in-tools.com
Re: how to select textframe(any object) by its ID?
Author: Robert Tkaczyk
Date: Sun, 01 Mar 2009 01:28
Date: Sun, 01 Mar 2009 01:28
16 lines
1344 bytes
1344 bytes
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
Re: how to select textframe(any object) by its ID?
Author: Harbs
Date: Sun, 01 Mar 2009 21:03
Date: Sun, 01 Mar 2009 21:03
10 lines
1056 bytes
1056 bytes
Robert Tkaczyk wrote: > yes > ??? I read that as: allPageItems is returned as an array (as it is in JS). You can't use itemByID on an array. pageItems is a collection. -- Harbs http://www.in-tools.com
Re: how to select textframe(any object) by its ID?
Author: Robert Tkaczyk
Date: Sun, 01 Mar 2009 21:29
Date: Sun, 01 Mar 2009 21:29
14 lines
1402 bytes
1402 bytes
in VB, when I run this code (after initialising connection to InDesign and to Document, etc.):
Private Sub Command3_Click()
MsgBox (TypeName(myDoc.AllPageItems.Item(1)))
MsgBox (TypeName(myDoc.PageItems.Item(1)))
End Sub
I'll have the same result twice, for example "TextFrame" if in my document first item is TextFrame
robin
--
www.adobescripts.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads