Hi Script Gurus,
I've been wondering for years if I can automate the time consuming hyperlinking of cross-references. Here's the scenario:
There's a figure citation in paragraphs which is something like this: "As depicted in Figure 1.1, this idealized earth would consist..."
Then that citation needs to be linked to the figure caption which is on another text frame which fortunately has character styling named 'cFCN' which looks something like: "FIGURE 1.1 View of earth’s interior..."
So my idea is to find the character style 'cFCN' and create hyperlink destinations then find all citations which will match the hyperlink destination we created and link to that.
Perform 2 grep searches, one for the captions and another for the figure captions. Loop trough each search result to map one result to another. If it is a valid match, then create the hyperlink.
Thanks for the reply. It was a great idea. But how do i validate if it is a match (in js)?