I must be missing something here

OS10.2.8, applescript 1.9, dual 400mhz G4

I have written the following code to move one word of a microsoft word document to another spot within the same document. I open the desired word document and then whenever I execute the code I get the error, “can’t get word 1 of text body of document 1”

There must be some basic terminology I am missing because this code is copied almost directly out of the applescript language guide. Any help would be greatly appreciated.

tell front document of application “Microsoft Word”
move word 1 of text body to before word 4 of text body
end tell

Many thanks in advance!

Does this work?

http://scriptbuilders.net


[This script was automatically tagged for color coded syntax by Script to Markup Code]

Thanks a bunch,

The simple removal of the “text body” allowed this code to work