1 Reply Latest reply on Aug 19, 2014 10:57 AM by elsanasle

    How to place the generated index topic


      I have a requirement to create index pages from a catalog that is generated completely (using javascript) from a xml data source dynamically using placeXML functionality of InDesign.


      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!


      - Elavarasan