I’m struggling with a script that has to simply find the next occurrence of a string in a text … regardless of selections
The problem is that I don’t want the found text to be selected, so that the next time the script finds the next occurrence. It would be as easy as clearing the selection but I cannot see how!
This is what I have, recycled from an example
tell application "Microsoft Word" set findRange to find object of selection tell findRange execute find find text "test" with wrap find end tell end tell
Thank you for your help!! it’s much appreciated