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
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
Copy link to clipboard
Copied
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