When you say it doesn't seem to work, what happens...
# suitescript
j
When you say it doesn't seem to work, what happens? have you tried adding
isInline: true
to the writeFile call?