Copy link to clipboard
Copied
hello friends,
i want insert SpecialCharacters.INDENT_HERE_TAB; into the string object, how can i insert.
my javascript code is as follows,
function (commentText,authorQueryTextFrame,queryNumber) {
//queryNumber and commentText are of string type and authorQueryTextFrame is textframe object.
var commentText=commentText.replace("[AU:",queryNumber + "\t");
// i want to insert SpecialCharacters.INDENT_HERE_TAB after "\t",but it will added a number into the string.
var str = queryNumber + "\t";
commentText=commentText.replace("]","");
commentText= commentText +"\r";
authorQueryTextFrame.contents += commentText;
var lastPara = authorQueryTextFrame.paragraphs.lastItem();
lastPara.appliedParagraphStyle = "Author Query Text";
}
will u tell me the rigth way to add this.
thanks
tahir.
Copy link to clipboard
Copied
This is a scripting issue, post it in the Scripting forum to get quick and better response. That forum is highly active and you are in with a more better chance of getting your scripting question answered over there.
Manan Joshi.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now