🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8179

Re: (JS) Adding hyperlinks

#8179
From: Dirk_Becker
Date: Wed, 08 Nov 2006 00:58
6 lines
1054 bytes
Paragraph has a texts element collection, so if you really want it as text, use the additional step below. The index 0 of texts[0] stands for the full text.

This is not neccessary though, the Paragraph qualifies as Text because Text is its base class. You did not see an error there, did you?

aText = app.activeDocument.stories[0].paragraphs[0].texts[0];
aDest = app.activeDocument.hyperlinkTextDestinations.add(aText,{name:aText.contents});
Technical Details
Message-ID: <3bc235ac.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc235ac.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,20057d8f7e7220f3
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dirk_Becker@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: (JS) Adding hyperlinks
Message-ID: <3bc235ac.4@webcrossing.la2eafNXanI>
Date: Tue, 7 Nov 2006 16:58:00 -0800
References: <3bc235ac.-1@webcrossing.la2eafNXanI>
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit