Pages.app delete a range of text with Applescript?
Hi,
I can't manage to delete from Applescript a part of my Pages document delimited by two placeholders.
I can get the two placeholders, but how can I construct the rich text object that represents everything between them?
tell application "Pages"
set myDoc to front document
tell myDoc
set startPlaceHolder to (the first placeholder text whose tag is "startTag")
set endPlaceHolder to (the first placeholder text whose tag is "endTag")
set startChar to character 1 of startPlaceHolder
set endChar to last character of endPlaceHolder
set toDelete to (startCharthruendChar)
end tell
end tell
Thanks for the help
JD