Hi there,
Can anyone tell me please how to replace a text string in Textedit?
This is what I have:
set AppleScript's text item delimiters to ","
tell application "TextEdit"
set allText to text of document 1
get text item 2 of allText --(correctly gets me the word I want to
replace)
set text item 2 of allText to "flower" -- does not work
end tell
This statement give me an error: set text item 2 of allText to
"flower". Hard to understand why this wouldn't work and any help very
much appreciated. Thank you.