🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1773

[JS] "Story offset" of paragraph

#1773
From: Fred_Goldman
Date: Sun, 25 Jan 2009 23:43
6 lines
812 bytes
How do you find out the index of a selected paragraph within a story.

app.selection[0].paragraphs[0].index;

For some reason the above returns the index of the first character 
within the story.
Technical Details
Message-ID: <1FA1F87384B4E3E1A77EC33CB6AD5249@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,bc195a071fed7d6a,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Fred_Goldman@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [JS] "Story offset" of paragraph
Message-ID: <1FA1F87384B4E3E1A77EC33CB6AD5249@in.webcrossing.la2eafNXanI>
Date: Sun, 25 Jan 2009 15:43:16 -0800
Lines: 6
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit