I'm looking for a very simple java or applescript for InDesign CS5 that will change multiple items into anchors. I found some in other places but I don't know enough about scripting to be able to change them to be what I need.
I'd like to use scripting to make everything that's formatted in paragraph style "Recipe Title-H2" into a text anchor. (I can change the name if spaces in the title are an issue). Or a bookmark with text anchor would work too. From there I can link all the cross references that mention the recipe back to the anchor. Can someone please help me out with the script? I need the text anchors to be named something, preferrably the original text they are highlighting.
Background: I'm trying to teach myself how to encode epubs, and with that I'm trying to make better InDesign files for epub output. One of the things I'd like to do is use scripting to make linking a little easier.
Thanks so much.
p.s. please be nice. I am n00b so if you need more info, or I'm in the wrong place I'll kindly try to fix my error.