using file.Type.PLAINTEXT creates a word document....
# suitescript
n
using file.Type.PLAINTEXT creates a word document. But why isn't WORD type working? It is mentioned in the API doc as the acceptable file type.