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

Re: Find and replace text in hyperlinks

$
0
0

I'm getting a JavaScript Error! sometimes when I run my code.

 

Error Number: 21

Error String: null is not an object

 

Source: if (myHype[len].destination.hasOwnProperty("destinationURL")

 

 

 

 

What's the best way for me to check if the hyperlinks have destinationURLs that aren't null and are longer than 0?  I only want to run my code on valid hyperlinks of course.

 

Thank you in advance for all of your help.


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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