Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

want to output the text of an index marker at the same position of the index marker

$
0
0

Hello.

 

I want to output the text of index markers at the same position of the index markers, using InDesign JavaScript.

 

There are two ways are in my mind now.

1. Use Indexes Objects, looping through them.

     In this way, you can get the contents text of Index markers, but you cannot get the position which you can use to insert the text.

     Am I right?

2. Use .findText method with searching text "^I".

     In this way, you can get the position, but you cannot cast the found character to Index Object, so you cannot get the Index text.

     Am I right?

 

Is there any way to solve either one of those problems, or both?

 

Thanks to your kindness.


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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