@gwhPoster – as stated here:
http://forums.adobe.com/message/5356216#5356216
there is the possibility, that a script is just deleting the destination of a hyperlink, leaving the hyperlink intact. It's property destination is then set to "null".
To get rid of ALL hyperlinks with destination set to "null", you could run the following snippet:
var d=app.documents[0];
alert("Hyperlink length BEFORE: "+d.hyperlinks.length); for(var n=d.hyperlinks.length-1;n>=0;n--){ if(d.hyperlinks[n].destination === null){ d.hyperlinks[n].remove(); }; };
alert("Hyperlink length AFTER: "+d.hyperlinks.length);
You'll get an alert before and after the loop about the count of the hyperlinks in your document…
Uwe