Answered
How to validate whether Hyperlink already present or not in Indesign using Javascript?
Is there any way to validate the Hyperlinks already added in the indesign document.
Is there any way to validate the Hyperlinks already added in the indesign document.
Hi,
Below is the snippet that will help you to tell whether hyperlink exists or not.
var doc = app.activeDocument;
var _hyperLink = doc.hyperlinks.itemByName('test');
if(_hyperLink.isValid)
alert("Exists");
else
alert("Not exists");
Assuming, hyperlink with name "test" exists in teh indesig document.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.