Get help using and writing Nisus Writer Pro macros.
3 posts • Page 1 of 1
The basic approach will be something like this:
Note however that Find will only search the display text for the term, not the link itself. If you wanted to search for words in the links, you'd probably have to write something more complicated.
Code: Select all
$term = 'Link' $doc = Document.active $found = $doc.text.find $term if $found $link = $doc.text.linkAtIndex $found.location $link.activate $doc else prompt 'Sorry. No links with term "' & $term & '" found' end