4 Replies Latest reply on Jul 14, 2008 6:52 AM by (Lee_Fielding)

    [CS3 JS]  Exchange Character Style Problem!

      Hello experienced JS people,
      The situation is as follows -
      I have a document that MAY have the Character Style 'A'.
      If this were to be true - then I'd like to exchange it for Character Style 'B'.
      Sounds simple doesn't it.... It's KILLING ME!

      This must be possible? The problem is - I don't know how!

      My scripting lookes like this so far:
      > app.findTextPreferences.appliedCharacterStyle = "File name";
      app.changeTextPreferences.appliedCharacterStyle = "Document No";
      oneDoc.changeText();

      Help would be greatly welcomed....
      Thanks in advance,
      Lee