4 Replies Latest reply on Apr 2, 2008 3:37 AM by (Kris_Mize)

    Creating a new paragraph style based on text in a document

      I'm working on some scripts for a new ad our company is working on. They are wanting to have the ability to change the font weekly in the ads. However, they want the style sheets to change based on this. What I am having to do is write a script that gets the properties of the different paragraphs in the selected text frame, and make paragraph styles. Is there a way to get the properties of paragraph 1, and use that information to make a new paragraph style? Here is what I have so far;

      set charaStyle to get properties of character charaSelect of paragraph paraOne of myBox

      set makeStyle to make character style with properties {name:"MF Price" & charaSelect, based on:properties of character charaSelect}

      We are using InDesign CS 3. Thank you in advance for the help.