8 Replies Latest reply on Nov 16, 2012 1:44 AM by rajnikids

    Create paragraph style - predefined


      Hi all,


      I m trying to create paragraph styles, specifying what we need? But the script runs error.


      I m specifying here the font family which i need and the font style.


      can anybody sort this out.


      var doc = app.documents.item(0);

      var paraStyleBodyText = doc.paragraphStyles.add({

        name: "Ariel",

        fontFamily: "Time New Roman",

        fonStyle: "Roman",

        pointSize: 6,

        fillColor: "black25",