Please try the simple JS code for insert the "Right Indent Tab" Character.
app.selection.insertionPoints.contents = SpecialCharacters.RIGHT_INDENT_TAB;
I tried it but not working
i want right indent tab before node so gave tab like
Nd.contents = SpecialCharacters.RIGHT_INDENT_TAB
"node" -- that really, really makes it sound as if this is part of an XML-based workflow.
Any details you might want to add to your one line problem description and question?
you cannot encode a right indent tab in XML because there is no such char in unicode. the same for a "indent to here".\
one fix i use is to use a marker (##RI#-for rightIndent tab) and convert them at the end using a find-replace.
if anyone has a better solution PLEASE PLEASE PLEASE tell.
Isn't \u0008 the Unicode for end of line tabs?
app.activeDocument.stories.insertionPoints[-2].contents="\u0008" does the trick. Although I saw something about 0008 being backspace.
Let me know if this works if it does I'll try look into indent to here
Trevor, \u0008 is the Unicode for Backspace. InDesign uses the code to do something else -- just like a couple of other codes, such as \u0018, the Current Page Number placeholder.
@Trevor – in addition what Jongware said, see the following collection of special characters, codes and their meaning in InDesign at Marc Autret's Indiscripts blog (download the PDF from there):
And the following comment by Marc Autret:
The GREP expression in InDesign is "~y". For TEXT search it is "^y".
In his documentation Mark gave some of the codes a red fill. Thiese are codes, correct me, if I'm wrong, that are "mis-used" (or should I say "dual-used"?) by Adobe for InDesign.
Thanks both, for the clarification