Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Apply [Unconditional] condition to Conditional Text

Return to Member Forum

  • Author
    Posts
    • #1188212
      Masood Ahmad
      Participant

      Hi Team,

      I have a document, which have multiple conditions applied to different block of text. I can select all the text and apply the none condition [Unconditional]. Since there are multiple text frames, I have select every text-frame and repeat this. Is there any JavaScript that can help me to apply the none condition [Unconditional] to every text frame in a document.

      Thanks in advance.
      Masood

    • #14324027
      Robert Ploch
      Member

      Hi Masood,

      try this, it work for me :)

      var s = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements(), i = s.length;

      while ( i– ) {
      s[i].applyConditions( [], true );
      }

      best regards
      m.

    • #14324012
      Masood Ahmad
      Participant

      Thanks Robert, for your quick code. It works like a charm.

      Just checking if all the Unused Conditions can be removed by adding some extra code to it.

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