Article View: adobe.scripting.indesign
Article #753Re: how to select textframe(any object) by its ID?
From: 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
Technical Details
Message-ID:
<9A1C49907D134746E908E3D17AB06B9B@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b80c74.-1@webcrossing.la2eafNXanI> <7653C3FB707C916432CEBCD676A0DF99@in.webcrossing.la2eafNXanI> <A022BAF402B0EFE0E3BA28B9BAAC2C9F@in.webcrossing.la2eafNXanI> <BC2BB236532E33904C1F8B5602F7DF2D@in.webcrossing.la2eafNXanI> <2AB4504BD0FA188C22E095675B01C8C1@in.webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dfa63a8c2b836010 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Tkaczyk <indesignscripts@wp.pl> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: how to select textframe(any object) by its ID? Message-ID: <9A1C49907D134746E908E3D17AB06B9B@in.webcrossing.la2eafNXanI> Date: Sun, 1 Mar 2009 13:29:18 -0800 References: <59b80c74.-1@webcrossing.la2eafNXanI> <7653C3FB707C916432CEBCD676A0DF99@in.webcrossing.la2eafNXanI> <A022BAF402B0EFE0E3BA28B9BAAC2C9F@in.webcrossing.la2eafNXanI> <BC2BB236532E33904C1F8B5602F7DF2D@in.webcrossing.la2eafNXanI> <2AB4504BD0FA188C22E095675B01C8C1@in.webcrossing.la2eafNXanI> Lines: 16 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-Antivirus: avast! (VPS 090228-0, 2009-02-28), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit