• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Remove All InDex Markers in empty cells

Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

I have a doc with lots of tables & empty cells. Each empty cells have an index markers in it and I need to remove all of them.

The find/change replacing  '^I' by '' (nothing) don’t remove them.

Is their a way to remove all Index Markers via a script?

Jean-Claude

TOPICS
Scripting

Views

1.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 26, 2013 Nov 26, 2013

Can you send an example idml or inx?

Otherwise perhaps you can try something like this:

var aDoc = app.documents[0]; 

var allTables = aDoc.stories.everyItem().tables.everyItem().getElements();

app.findTextPreferences = app.changeTextPreferences = null;

app.findTextPreferences.findWhat = "<FEFF>";

app.changeTextPreferences.changeTo = "";

aDoc.stories.everyItem().tables.everyItem().changeText();

app.findTextPreferences = app.changeTextPreferences = null;

alert("done");

This is a part of a script writ

...

Votes

Translate

Translate
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

Please be sure that you have no formatting settings in your search&find dialog.

Do you really mean index markers?

Please show us a screenshot with visible hidden characters.

^I (for text) works for me in ID (CS3 and CS5)

also works ~I (for GREP)

1234_4.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

The index markers are introduce when using datamerge in table. They are not associated with any topics in the Index Panel. They are not searchable. Weird! Some at Adobe are in this case. Thanks!

Screen Shot 2013-11-26 at 4.44.23 PM.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

Can you send an example idml or inx?

Otherwise perhaps you can try something like this:

var aDoc = app.documents[0]; 

var allTables = aDoc.stories.everyItem().tables.everyItem().getElements();

app.findTextPreferences = app.changeTextPreferences = null;

app.findTextPreferences.findWhat = "<FEFF>";

app.changeTextPreferences.changeTo = "";

aDoc.stories.everyItem().tables.everyItem().changeText();

app.findTextPreferences = app.changeTextPreferences = null;

alert("done");

This is a part of a script written by Uwe Laubender. I think this could help you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

Wonderfull !

This completely remove the nasty index markers. Be blessed my friend!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

Perfect, then you can mark your issue as solved.

(and only for info: you don't need the line#2 in the script snippet - I have overlooked this before)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

Copy link to clipboard

Copied

Done!

Strange that using the unicode "<FEFF>" will work in a text search in a script, but will not work using InDesign GREP search with \x{FEFF}.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2013 Nov 27, 2013

Copy link to clipboard

Copied

@Jean-Claude – True. Because of that I used the TEXT search 😉

Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 23, 2015 Dec 23, 2015

Copy link to clipboard

Copied

LATEST

Thank you so much, I've been looking for a solution to this for a while 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines