I have a find and replace script with spanish translations. I’ve run into a problem when duplicate english words are used across multiple entries.
For example “Technology” & “Information Technology”. The script will change any instances of Technology so when the script looks for Information Technology it can’t complete a find and replace.
Can I somehow search the “whole word”?
Here is what I have for the script: (I’ve only included a couple of searches for example)
tell application “Adobe InDesign CS2”
set myDocument to active document tell myDocument search for "Information Technology" replacing with "TecnologÃa de informaciÃ³n" with case sensitive and whole word search for "Materials" replacing with "Materiales" with case sensitive and whole word
I appreciate any help you can offer. Thank you.