Straightforward script to add entry using paragraph style
Hello all,
I am a novice to scripting in InDesign. Does anyone know of or can someone create a script that would select an entire paragraph of text given a particular style (Helvetica Bold)?
I have a 1000+ page directory with 33,000+ people listed, where the first paragraph (the person's name, in bold) needs to be added to an index:

I have been doing this with the Find/Change dialog, searching for the "Provider" style, which selects the whole line (paragraph) so I can then click-add to the index. As you might imagine, this is mind-numbingly tedious.
Help, please! Any already-created scripts out there? I've found one that searches by character style, but then it also reverses a first/last name to last, first along with some other things... I don't know enough about scripts to edit it and I couldn't even get it to run.
