Hi
Being an absolute newbie in Applescriptting, I have run into a nagging situation. I get MS Word files from a client which have some unwanted text in the beginning of the files and at the end of files. I have the following applescript to delete 4 unwanted sentences at the top of every file:
The problem is that I don't know how to make this script delete last 4 sentences also.
I would also like to know how could I delete a certain amount of paragraphs from bottom up in an MS Word file.
Thanks in advance
Max
Being an absolute newbie in Applescriptting, I have run into a nagging situation. I get MS Word files from a client which have some unwanted text in the beginning of the files and at the end of files. I have the following applescript to delete 4 unwanted sentences at the top of every file:
Code:
tell application "Microsoft Word"
set aRange to sentence 1 of active document
set aRange to set range aRange start (start of content of aRange) ¬
end (end of content of sentence 4 of active document)
delete aRange
end tell
The problem is that I don't know how to make this script delete last 4 sentences also.
I would also like to know how could I delete a certain amount of paragraphs from bottom up in an MS Word file.
Thanks in advance
Max