How to Replace with different fonts for different font styles

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / How to Replace with different fonts for different font styles

Viewing 0 reply threads
  • Author
    Posts
    • #1229277

      Hello All,
      Greetings.

      I have a text in which there are different font styles (like Regular, Bold, Italics etc). I want to replace the letters with Find Replace by List code. So I have written the following in the FindReplaceByList.js support file.

      text {findWhat:”A”, appliedFont:”Minion Pro”, appliedFontStyle:”Regular”} {changeTo:”A”, appliedCharacterStyle:”RegularStyle”}
      text {findWhat:”A”, appliedFont:”Minion Pro”, appliedFontStyle:”Bold”} {changeTo:”A”, appliedCharacterStyle:”BoldStyle”}

      Am I missing anything here? It is not working as expected. All the fonts are replaced with BoldStyle always.

      Thanks in advance.

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