Article View: adobe.scripting.indesign
Article #2431Re: [CS4 JavaScript] Cross references
From: Rick_Quatro
Date: Thu, 18 Dec 2008 20:50
Date: Thu, 18 Dec 2008 20:50
16 lines
1144 bytes
1144 bytes
Hi Dave,
In this line:
var destination = doc.hyperlinkTextDestinations.add(dest, {name:termName});
what does "dest" refer to? Is it a paragraph object? I actually think I want to do this:
var destination = doc.paragraphDestinations.add(dest);
The documentation says that dest is Text, but I am not sure how to specify the paragraph that I want the cross reference to point to.
On a related point, I would want to know how to see if a ParagraphDestination already exists for a particular paragraph object.
Thanks,
Rick
Technical Details
Message-ID:
<59b74dde.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossingReferences:
<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: Rick_Quatro@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.2@webcrossing.la2eafNXanI> Date: Thu, 18 Dec 2008 12:50:42 -0800 References: <59b74dde.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit