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

Is there a way to know if a story contains a generated index?

New Here ,
Nov 30, 2017 Nov 30, 2017

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.

TOPICS
SDK

Views

487

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

Guide , Dec 05, 2017 Dec 05, 2017

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

Votes

Translate

Translate
Guide ,
Dec 02, 2017 Dec 02, 2017

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.

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
New Here ,
Dec 04, 2017 Dec 04, 2017

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.

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
Guide ,
Dec 05, 2017 Dec 05, 2017

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

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
New Here ,
Dec 05, 2017 Dec 05, 2017

Copy link to clipboard

Copied

LATEST

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.

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