Copy link to clipboard
Copied
Hi all!
When an index is generated and you have the option to replace the existing index, this information is updated in that story and I need to identify it.
Is there a way to know if a story contains a generated index?
Thank you very much in advance.
Juanma.
Just had a look at an index story.
IID_IINDEXTOCDATAREF points to a kIndexTOCDataBoss ...
Besides, IID_ICLASSIDDATA has a "kIndexDataLinkRegistryBoss".
As I never worked with indexes, there might be better ways.
Regards,
Dirk
Copy link to clipboard
Copied
Hello,
In ExtendScript you can do this.
if ( myTextFrame.parentStory.storyType == StoryTypes.INDEXING_STORY )
I didn't find any thing like storyType in the SDK.
P.
Copy link to clipboard
Copied
Hello Pickory!
Thanks a lot for your quick answer, but I need something like that using SDK of InDesign.
I will keep trying it and waiting a possible solution.
Kind regards,
Juanma.
Copy link to clipboard
Copied
Just had a look at an index story.
IID_IINDEXTOCDATAREF points to a kIndexTOCDataBoss ...
Besides, IID_ICLASSIDDATA has a "kIndexDataLinkRegistryBoss".
As I never worked with indexes, there might be better ways.
Regards,
Dirk
Copy link to clipboard
Copied
Hi Dirk!
Just what I was looking for.
I have been able to solve my problem.
Thank you very much for your help.
Kind regards,
Juanma.