2 Replies Latest reply on Jan 5, 2011 5:19 AM by vic_awesome

    characterStyles of a document inside an InDesign book


      How do I list the characterStyles of a document that is inside a book without opening the document?  This is my script:


          app.open (book_contents[0], false);
          var charStylesDD =app.documents.item(0).characterStyles.everyItem().name;
          app.documents.item(0).close (SaveOptions.no);     


      It works but this happens before a window is opened, as you might imagine it may take a long time and users might think the script did not run.  If I remove the app.open part, the value of charStylesDD is undefined.


      I need something like:




      But unfortunately book.bookContents does not have the characteStyles function.


      Any help would be appreciated.  Thanks guys!