Article View: adobe.scripting.indesign
Article #1023[CS2 JS] Get the parent paragraph of a table
From: Joaquin_Zarasul
Date: Fri, 20 Feb 2009 12:54
Date: Fri, 20 Feb 2009 12:54
10 lines
899 bytes
899 bytes
Hi, Anybody here who knows how to get the parent paragraph of a selected table? var myTable = app.selection[0]; var myStory = myTable.parent.paragraphs; The script above gives me all the paragraphs of the parent text frame. I want to know the index of the paragraph where my selected table is. Appreciate the help you can give. Thanks!
Technical Details
Message-ID:
<59b7fe71.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,f9071786e2bf50b7,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Joaquin_Zarasul@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [CS2 JS] Get the parent paragraph of a table Message-ID: <59b7fe71.-1@webcrossing.la2eafNXanI> Date: Fri, 20 Feb 2009 04:54:37 -0800 Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit