I found a thread from 2010 that seems to have answered my question BUT the script did not work for me. I am running CC 2014.
I want to find all instances of "coconut" and turn it into a hyperlink that goes to "http://mylink.com" when you click on the word "coconut".
Here is the thread that I found: Replacing occurrences of a word by links
And here is the script from that thread (it's the first script referenced and is marked "correct answer").
First, you know you don't want the line numbers, right?
Second, what happens when you try to run it?
Did you replace SEARCH with your target word? Did you change the URL in line 8?
Yes to no numbers.
I guess I was thinking that it would prompt me to put in a "find this hyperlink" box and a "replace with this hyperlink" box. I have another script that allows me to actually find and replace the hyperlinks themselves and that's what it does. And I love that script.
If I go in and edit the script text to find "coconut" and replace with "mylink.com", that works.
Now, how do I get it to prompt me for my find and replace?