Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Make hyperlink text actual hyperlinks

$
0
0

We have a couple of CSV files we use for datamerging with InDesign. Some of the text in the CSV has hyperlinks in the paragraph.

 

Since InDesign does not automatically make hyperlinks in the CSV text actual hyperlinks and there is no special syntax to indicate it is a hyperlink (such as using @ for image paths).....we have decided to wrap any hyperlink text with the <link></link> tag.

 

InDesign, we want to find all of these <link> tags and replace it with an actual hyperlink. The link maybe an http link, mailto link, or a tel link.

 

How would I do this with InDesign scripting (prefably javascript or c#)?

 

I have the following so far in C# (similiar to javascript):

app.FindTextPreferences.FindWhat = "<link>";

 

 

How do I replace it with a hyperlink?


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>