• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Can I search for an occurrence in one paragraph style and add a word in another paragraph?

Community Beginner ,
Apr 08, 2023 Apr 08, 2023

Copy link to clipboard

Copied

Hi everyone. I apologize in advance for my very low level of English. I'd like to ask you a question about Indesign, even if I think it's unsolvable.
With Excel it can be done, but there's so much hype behind it that maybe it's not worth it.
Definitely with a script, but I've never done anything like this.

I composed a menu, and in the cocktail section I was asked to add allergens, only when a particular text was written in the ingredients line. Schematically it is like this:

row name € 3.00
various ingredients line

row other name € 3.00
various ingredients line

Lines are differentiated with different paragraph styles (thanks for the video series about it)
For example, if in the ingredients line it compares the word "champagne", I have to add "1" in the name line.

From the grep window there is no way to do this, as well as in the paragraph style window.
My question is can I search for an occurrence in one paragraph style and add a word in another paragraph?

Thanks and hello from Sardinia

TOPICS
How to , Scripting

Views

154

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 09, 2023 Apr 09, 2023

Copy link to clipboard

Copied

Sounds doable, however the problem isn't adequately defined. If we can have a look at the actual document it would be helpful to guide. Do you have experience with coding?

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 09, 2023 Apr 09, 2023

Copy link to clipboard

Copied

LATEST

Guys, thank you so much. I imagined I had to resort to a script. It was a few entries and I solved it manually before I even posted this question. I was too curious though and I think I will have to really learn script programming in Indesign. @Manan Joshi  and @Ahmed29317872gp3a  thank you so much again. Greetings from Sardinia

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines