🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2432

Re: [CS4 JavaScript] Cross references

#2432
From: Dave_Saunders
Date: Thu, 18 Dec 2008 21:01
13 lines
1286 bytes
You can specify the paragraph in any of the various ways that a paragraph can be referenced:

myFinds[j].paragraphs[0];
myStory.paragraphs[16];
app.selection[0].paragraphs[0];

it all depends on the technique you're using to pick out paragraphs.

I never noticed pargraphDestinations when I was researching this. I probably could have used that instead, although in my case I was pointing at words within paragraphs. That could matter for long paragraphs that might span from one page to another.

I'm not sure off the top of my head with how to help with whether or not a paragraph destination already exists. Does it do any harm to make another one? Not sure.

Dave
Technical Details
Message-ID: <59b74dde.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
References: <59b74dde.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,91522556f5796bab
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS4 JavaScript] Cross references
Message-ID: <59b74dde.3@webcrossing.la2eafNXanI>
Date: Thu, 18 Dec 2008 13:01:03 -0800
References: <59b74dde.-1@webcrossing.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit