Applescript in Word 2008 seems to be just short of completely broken
I’m trying to do something that should be very, very simple: cut the text selected in a Word document. But no matter what I try, I can’t do it using Word’s scripting commands (although I guess I could do it with GUI scripting).
This code example was taken from Microsoft’s own Applescirpt reference for Word 2004:
tell application "Microsoft Word"
if selection type of selection is selection normal then
cut object text object of selection
set newDoc to make new document
paste object text object of newDoc
end if
end tell
And it does not work! All I get is this uninformative error:
Does anyone know if I’m doing something wrong, or if this is a known bug in Word 2008?