Article View: adobe.scripting.indesign
Article #14879Re: [AS to JS] Reference script
From: Peter_Kahrel
Date: Thu, 15 Jan 2004 12:55
Date: Thu, 15 Jan 2004 12:55
15 lines
1019 bytes
1019 bytes
Rens,
I don't know AS, but as far as I can tell, this is what you have in mind:
doc = app.activeDocument;
hyp = doc.hyperlinks;
for( i = 0 ; i < hyp.length ; i++ )
if( hyp[i].name.indexOf( "pageref" ) > -1 )
{
pagenum = hyp[i].destination.destinationText.parentTextFrame.parent.name;
hyp[i].source.sourceText.contents = pagenum
}
Peter
Technical Details
Message-ID:
<2ccf57a5.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf57a5.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d2827867f6cc8388 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-15 05:07:43 PST From: Peter_Kahrel@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [AS to JS] Reference script Message-ID: <2ccf57a5.0@webx.la2eafNXanI> Date: Thu, 15 Jan 2004 04:55:44 -0800 References: <2ccf57a5.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit