It would have helped if you mentioned that you were working with structured documents and with which version of FM. [I've moved this thread to the FM Structured Forum].
If you're using one of the later versions of FM and your content is XML-based, then you could do an XPath query to load all of the required element ID attributes into the XPath pod to link to the specific target IDs. IIRC, you can even save the results of an XPath query as an xml file.
Alternatively, you can just do a straight Find > Element and specify the element type, attribute and attribute value that you're looking for.
Hopefully, one of the structured FM experts will have additional suggestions.