2 Replies Latest reply on Mar 28, 2008 1:09 AM by (Dmitry1776)

    Why dissapear bold and italic if i apply ParagraphStyle by scropt?

    Level 1
      Discovered next siyuation. If i apply ParagraphStyle manually (by clickin in ParaStyle palette on needed stylename, then all bolds and italics remain in text, but if a run script, all text became PLAIN.

      code is:
      Set MyInd = CreateObject("InDesign.Application.CS3")
      Set MyDoc = MyInd.ActiveDocument
      Set myText = MyDoc.Selection.Item(1)
      Set myStory = myText.ParentStory
      Set myTextStyle = MyDoc.ParagraphStyles.Item("Body")
      myStory.AppliedParagraphStyle = myTextStyle