But it's working fine for me.
var cStr = "I am new scrpit developer.I am not know how develop indesign script? but forums help me to develop my script"
script+="var myDocument = app.documents.add();\n";
script+="var myTextFrame = myDocument.pages.item(0).textFrames.add();\n";
script+="myTextFrame.geometricBounds = [\"5p\", \"5p\", \"10p\", \"10p\"];\n";
you've got to mask the linebreaks in the cStr. -> \\n or \\r
var cStr = "I am new scrpit developer.\\rI am not know how develop indesign script? \\nbut forums help me to develop my script"
But this also depends to the way you create the string, so there may be another appoach ...
Thanks for Reply
I know the Problem, I already told you in my above post
This is because whole text is not in single line.When i write this text in single line it run sucessfully.
Problem is that, I am getting CString
cStr text from another file and I want to write as it as i get it in
cStr. I do not want to change any thing in
Is it possible without changing in the text to write it?