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

Script needed – Find labeled textframes and apply a variable character style.

Return to Member Forum

  • Author
    Posts
    • #80981

      Hello all!!
      I have spent hours, now day reading about GREP and now scripting(Extend script) inside Indesign. Awesome stuff…

      I have a client who wants me to add 4 or 5 variable data fields to a layout(Data merge) Then they want to automatically specify a set of specific colors for the “variable message” text based on a predetermined color palette.

      This is an example of the data flowing in (simplified)

      MESSAGE COLOR ID# PART#
      This is message 1 color 1 0100011 A020005
      This is message 2 color 2 0100012 A020006
      this is message 3 color 3 0100013 A020007
      this is message 4 color 4 0100014 A020008
      this is message 5 color 5 0100015 A020009

      I was thinking of labeling the text frames I want to change in the “script label” window. I could create 5 paragraph styles that would contain the colors.

      I need help creating a script(InDesign 5.5) that could find only the “labeled” text frames and apply a paragraph style based on the COLOR field in the .csv data.

      Any help is appreciated. I am digging thru the scripting references and DOM now…I am not really sure about the applying style based on variable COLOR data thru .csv- I haven’t seen anything like that around.

      Could anyone help me out? I am not sure if there is a way to do this without a script, I couldn’t find one yet. I have very limited scripting experience but, I know InDesign well.

    • #81597

      Hello, Bryan – if you still need help, please message me at evgenytr@gmail.com

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads