I created a place holder (a separate page with a textFrame) in my template (.indt file) and used text in between some tags (example: <ix>sometext to be indexed</ix>) and generated the topic thro' script (used grep).
I am able to invoke the "generateIndex" menu action using the following script and it works thro' ExtendScript ToolKit but the same is not working if I execute the script using the SOAP client to the InDesign Server.
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
var indexAction = app.scriptMenuActions.itemByID(78084);
The following errors occur.
UserInteractionLevels is undefined
Object does not support scriptMenuActions property
Does anyone have any other ideas to achieve the same, please help!
I appreciate your help and thank you!
I found the solution. There is a method for the Index object named "generate" and I invoked to generate the index.