Copy link to clipboard
Copied
Hi everyone
can you make a script for del those index reference marker:
Teetan
Here a screenshot before replacement with *nothing* and after.
(<FEFF> in text search will find the XML tags as well, but in this case will not remove them)
Uwe
Copy link to clipboard
Copied
Try,
app.activeDocument.indexes[0].topics.everyItem().remove();
OR
app.activeDocument.indexes[0].topics.everyItem().pageReferences.everyItem().remove();
Vandy
Copy link to clipboard
Copied
Hi,
Not index markers but cross-reference target markers.
Copy link to clipboard
Copied
thank you Vandy
seems not work
Copy link to clipboard
Copied
cross-reference marker?
I don't really sure what is it
Copy link to clipboard
Copied
the GREP wildcard ~I
but unremovable
Copy link to clipboard
Copied
Hi,
I am not in front of my system, may be the below link will help you.
http://indesignsecrets.com/how-to-remove-all-the-index-entries.php
Vandy
Copy link to clipboard
Copied
thank you Vandy
run your script I got this error
Teetan
Copy link to clipboard
Copied
and search ^I
I got this
but I don't know what in world is this kind of thing
thank you so much
Teetan
Copy link to clipboard
Copied
Coucou ! (in french)
Insert a index entry! Vandy is right!
But here, it is not a maker for an index entry. You have cross-references!! Already said in Post#2.
Copy link to clipboard
Copied
I place a word file into Indesign, then the file have this kind of things
I don't how can I remove it
Copy link to clipboard
Copied
@Teetan VK – that's the dreaded <FEFF> special character!
Do a TEXT search/replace. Not a GREP search (that will not work).
And be aware, that also XML markers and Index markers will be found with:
<FEFF>
Uwe
Copy link to clipboard
Copied
Here a screenshot before replacement with *nothing* and after.
(<FEFF> in text search will find the XML tags as well, but in this case will not remove them)
Uwe
Copy link to clipboard
Copied
Hi Uwe,
I've already had a discussion about <FEFF>.
If you have index markers that you want to keep! …
Copy link to clipboard
Copied
Hi, Obi-wan!
Yes. Then you have to shield them (the index markers) with a special character style. The next step would be to search for <FEFF> without that special character style…
Uwe
Copy link to clipboard
Copied
Aha! Still difficult to block you in a corner of the ring!
I use a condition to do this (personally used in another [JS] to generate several index in the same book)!
Copy link to clipboard
Copied
One question remains unanswered:
We can delete index marks:
app.activeDocument.indexes[0].topics.everyItem().remove();
and those of hyperlinks:
app.activeDocument.hyperlinkTextDestinations.everyItem().remove();
app.activeDocument.hyperlinkTextSources.everyItem().remove();
Is there a javascript syntax for cross references?
Copy link to clipboard
Copied
Obi-wan, Cross References were tacked on with paperclips and duct tape. They refer to the list of topics, just like indexed items: http://jongware.mit.edu/idcs6js/pc_CrossReference.html
I don't have the time to experiment, but this suggests that if you remove all index topics, you also remove cross references -- and the other way around. Looping over all cross references and only deleting their own is not safe; you would need to check if the topic is not used for the index as well.
Copy link to clipboard
Copied
Hi Jongware,
Thanks for the answer!
Is there a way by Javascript [it's only a question] to "jump" from the first RC source to its RC target, then jump to the following RC source … as we can do with the RC panel?
Thanks in advance.
Copy link to clipboard
Copied
No idea, it's not something I've tried before. Maybe you can try [textItem].showText()?
Copy link to clipboard
Copied
Laubender
AND
Obi-wan Kenobi
SOLUTION, BOTH WORK
THANK YOU ALL GUYS
TEETAN
Find more inspiration, events, and resources on the new Adobe Community
Explore Now