Field "scene" contains text I want to summarize.
Field "test" is the destination field.
This script works, except it replaces strings in field "scene." I want to replace words in field "scene." Many commonly used English words are also little parts of bigger words.
I tried the replaceText command instead. It's commented out. I'm not sure if that's what replaceText is supposed to do. (As I've complained before, the documentation is way too terse for novices like me!)
If replaceText is the right command, maybe I just got the syntax wrong.
Code: Select all
on mouseUp Ask "Enter the intensity of summary you want (an integer from 10 to 99)" put it into intensity put field "scene" into whataVar repeat with i = 1 to intensity if the shiftKey is down then exit repeat end if put line i of card field "wordlist" into tNum replace tnum with empty in whatavar --replaceText(whataVar,tnum,empty) end repeat put whataVar into field "test" end mouseUp
Thanks in advance,