Break Link to Style in Scripts

Viewing 2 reply threads
  • Author
    Posts
    • #99690
      ll1324
      Member

      Does anyone know where the function or method for “Break Link to Style” (e.g. from a character, paragraph, or object style) is for a script? If doing this by hand, of course, you find it it in the Character Styles or Paragraph Styles flyout menu, and just select the menu item “Break Link to Style”.

      Applying a style is easy, e.g.: para.applyParagraphStyle(myheadersstyle, true); but what if we want to break link to style?

      Looked all over paragraph, character, paragraph styles documentation … This is in Javascript …

      Any ideas?

    • #99697

      Hi,

      I never give code for free now [written by me or not]!

      Only sometimes! Place the cursor in a para (with a para style applied) and “break the link to it”!

      app.activeDocument.selection[0].applyParagraphStyle(app.activeDocument.paragraphStyles[0], false);

      (^/)

    • #99698
      ll1324
      Member

      Thank you so much!

      (sound of facepalm) I should have known that. I think my brain isn’t working … need … coffee …

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>