Script to insert styled paragraph and text
What I am trying to do:
I want a script to find every instance of a paragraph styled as Chapter Title, then insert a paragraph styled "Inline graphic" and in that new paragraph insert the text "InsertGraphic"
Current Script (cobbled together from two different scripts):
Issue:
I'm close. This works perfect for the first instance of Chapter Title but throws the text in the middle of the second instance and goes downhill from there. So being a total noob, I added the i+1 thing thinking that would move it to the next paragraph and somehow magically that would help. It didn't. And yes, feel free to call me blond. It's okay. I really do have blond hair.
Any help is greatly appreciated
