I have solved.
This is the solution:
textframe.contents = '\n';
textframe.paragraphs[textframe.paragraphs.length-1].contents = 'aa';
You awarded "correct" points to yourself -- which is ofcourse okay if you are happy with your own answer, but you might want to know this definitely does not add a paragraph. "\n" is the shortcut code for a forced line break. You can see the difference if you try to apply a different paragraph style to this 'new' paragraph. It'll also lead to problems when you are using fully-justified text.
The correct shortcut code for a real paragraph return is "\r".
I have try with \r but not function.
Indesign not add a paragraph can you help me??
Are you using CS3 JS? (In JS you can do)
textFrame.contents += "\rMy New Paragraph";
i have try but not function.
A little more info is needed.
What version of Indesign are you using?
What kind of an error message do you get?
Can you post your entire script?
I have resolve i must insert a string after \r