I’m having difficulties with Word 2004 under OS X 10.3.9. I have this script fragment, which is to concatenate the text from a list (here called alias_list) of Word documents into a single new document.
tell application "Microsoft Word"
activate
set new_doc to (make new document)
repeat with this_doc in alias_list
open {this_doc}
select text of front document
copy
close front document saving no
select insertion point at end of front document
paste
end repeat
end tell
I lifted this from another script posted earlier on this site. I have (at least) 3 problems here, in what would seem to be blindingly simple code.
- This version won’t compile unless I turn off the “select insertion point . . .” line.
- The line ‘copy’ converts to «event misccopy» upon compilation
- The ‘select text’ line yields an error “Microsoft Word got an error: every text of document 1 doesn’t understand the select message.”
Can anyone help me in doing this simple task?