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

Re: Convert Cross-Reference to Text

$
0
0

Ah, yes, you can't remove() text. Hadn't spotted that in the small test. You need to set it to an empty string:

 

var xrefs = app.documents[0].crossReferenceSources.everyItem().getElements();for (var i = xrefs.length-1; i > -1; i--){    xrefs[i].sourceText.insertionPoints[-1].contents = xrefs[i].sourceText.contents;    xrefs[i].sourceText.contents = "";}

 

Peter


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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