2 Replies Latest reply on Apr 2, 2014 7:29 AM by Harry Ramming

    Paragraph styles reassured .js to .jsx

    Harry Ramming

      Hi folks, could use a littele help:

      Who knows how to translate the following old script to work with InDesign CS 6 and CC?:

       

      1 myStyles = app.documents[0].paragraphStyles;

      2 app.findPreferences = null;

      3 app.changePreferences = null;

      4 for (var n = 1; myStyles.length > n; n++){

      5 app.documents[0].search("", false, false, undefined, {appliedParagraphStyle:myStyles[n]}, {appliedParagraphStyle:myStyles[n]});}