1 person found this helpful
set find what of find grep preferences to "\\u[a-z’]+"
This will definitely take much time to find since it is finding all the words starts with a capital letter. Instead iterate every story and then by every line and then check the last word of each line.
Thanks, Green4ever. This puts me on the right track. Now for the maddening task of trying to get the syntax right. Sigh.
I'm having a couple problems: 1) After the first execution, I get this error: "Adobe InDesign CS4 got an error: Missing required parameter 'to' for event 'move'." (See below; as you can se, I have a parameter for the "to" event).
move selection to last character of item MyWord in MyFoundWords
You can't move a selection; instead set the selection:
set selection to last character of item MyWord in MyFoundWords
I am obviously still thinking in VBA terms. I've changed my approach, but this is still good to know. Thanks for the advice.