Seven years ago, I had asked and received a workable answer to a simple problem, yet now that same problem has come back to haunt me...
All I'm trying to do is to replace rounded quotation marks in a document with plain "quote" marks and doing so through rtfText so it doesn't wipe out the other formatting styles. I have placed the code I'm using below and it looks totally correct to me but the rounded quotation marks are continuing to stay rounded. Any good ideas are definitely appreciated.
Code: Select all
on mouseUp
###################
# UN-FANCY QUOTES #
###################
set the cursor to busy
get the rtfText of field "importField"--Step #1 & 2
put it into tQuoteMarks
replace numToChar(147) with quote in tQuoteMarks--Step #3 (rounded left quotations marks)
replace numToChar(148) with quote in tQuoteMarks----Step #3 (rounded right quotations marks)
set the rtfText of field "importField" to tQuoteMarks--Step#4
answer information "All done. Your quotes are no longer fancy." titled "Fancy Quotes are Gone"
wait 5 ticks
end mouseUp
Thanks in advance,
deeverd