Script - Find paragrapf style and change with apply my style then next style
Hi community,
i would like to find a solution for the next problem
I have a 400 pages book with a text set up in this way:
paragraph style "Subtitle 1" then
paragraph style "Body text"
paragraph style "Body text"
paragraph style "Body text"
paragraph style "Body text"
(the number of paragraphs "Body text" isn't a fix number
...
paragraph style "Subtitle 1" then
paragraph style "Body text"
paragraph style "Body text"
paragraph style "Body text"
paragraph style "Body text"
etc.
...
I would like to find, in selection text, all paragraps "Body text" between each "paragraph style "Subtitle 1" and apply paragraph styles in this way
"My new style 1"
than next style "My new style 2"
then next style "My new style 3"
than next style "My new style 2"
then next style "My new style 3"
....
until the next paragraph style "Subtitle 1"
and than repeat all until the and of selection
Is this possible with a script?
Thank you in advance
Marko
