Script to find text with a character style but no hyperlink?
- This topic has 0 replies, 1 voice, and was last updated 9 years, 5 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Script to find text with a character style but no hyperlink?
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Script to find text with a character style but no hyperlink?
Some (but only some) hyperlinks have been accidentally removed in a very long document. However the original anchor text still exists, and still has a character style applied to it. I need to produce a list of the items of text that are visually styled as a hyperlink but have no actual hyperlink applied.
Say for instance my document contained five items of text A, B, C, D and E styled with either the “more-info” or the “even-more-info” character style. Any text in these two character styles should be a hyperlink. But only A, C and D actually have hyperlinks applied. Is there a way to use a script to generate a list (or an alert) that says: B and E
Then we can search manually for the incorrect instances and insert the correct hyperlink. In our case it’s not possible to add the hyperlinks automatically as the URLs are not the anchor text. But it would save an enormous amount of time to be able to go directly to the text missing a hyperlink rather than checking all the instances of the two character styles manually (there are 1,000s).
Any help or thoughts would be much appreciated!
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!