Code: Select all
$doc = Document.active
$found = Hash.new
Find All "(AnyWord)", 'eau'
Show Find Results $found, "All Glossary Terms"
How should I use the Show Find Results?
Code: Select all
$doc = Document.active
$found = Hash.new
Find All "(AnyWord)", 'eau'
Show Find Results $found, "All Glossary Terms"
Code: Select all
$doc = Document.active
$found = $doc.text.findAll "(AnyWord)", 'eau'
Show Find Results $found, "All Glossary Terms"
Philip gave a nice explanation on how to use Show Find Results, but for your specific example you don't actually need to bother with all that. Instead just use the "V" option for your find/replace command, which shows a find results list window automatically. With that your whole macro can be a single line:
Code: Select all
Find All "(AnyWord)", 'eauV'