Well, this problem sure is a bunch of horse pucky. Apple has made some very inconvenient changes to TE.
This works with TextEdit 1.8 on Mountain Lion. Note that it saves to the Desktop. Trying to save to Documents fails no matter what embedded folder I try.
------------------------------------------------------------------------------------------------
tell application "TextEdit"
set newFile to (((path to desktop folder) & "Test_File.rtf") as text) as «class furl»
set _text to "Here is some sample text."
set newDoc to make new document with properties {text:_text}
save newDoc in newFile
end tell
------------------------------------------------------------------------------------------------
I have 1.8 zipped and use 1.6, because it's waay faster and better behaved.
This works fine with TextEdit 1.6:
------------------------------------------------------------------------------------------------
tell application "TextEdit"
set newFile to (((path to documents folder) & "Test_File.rtf") as text)
set _text to "Here is some sample text."
set newDoc to make new document with properties {text:_text}
save newDoc in newFile
end tell
------------------------------------------------------------------------------------------------
So does this:
------------------------------------------------------------------------------------------------
tell application "TextEdit"
set newFile to "Documents/Test_File.rtf"
set newFile to do shell script "echo ~/" & quoted form of newFile
set _text to "Here is some sample text."
set newDoc to make new document with properties {text:_text}
save newDoc in newFile
end tell
------------------------------------------------------------------------------------------------