How can I get ID ME (Middle East) to display right-to-left channels?

Hello.

I use InDesign Middle Eastern version, and I set it up to use right-left text when you use the user interface. The problem is that when I'm scripting, if I join two strings, they appear from left to right.

How can I change the settings so that it reads right to left?

Any help would be appreciated.

Hi Schmaltzkopf

It is a correct way to do it.

var doc, myRightHeader, ip, textVar;

doc = app.documents.add();
myRightHeader = doc.textFrames.add({geometricBounds:['12.7mm','100mm','30mm', '197.3mm']});
ip = myRightHeader.insertionPoints;

// set the paragraphDirection to right to left
// see http://jongware.mit.edu/idcs6js/pc_Story.html
// and search for the direction to see the different RTL options
ip[0].paragraphDirection = ParagraphDirectionOptions.RIGHT_TO_LEFT_DIRECTION;

// These need to be on 3 lines
ip[0].contents = SpecialCharacters.autoPageNumber;
ip[-1].contents = " ";
textVar = ip[-1].textVariableInstances.add(LocationOptions.AFTER, ip[-1])
textVar.associatedTextVariable = doc.textVariables.itemByName("Creation Date");

HTH

Trevor

Tags: InDesign

Similar Questions

Maybe you are looking for

  • ProBook 455: what models can be upgraded to windows 10

    Hello I'm probably not the first person to ask this question, but I'll try to find a link or somewhere a page that lists all compatible with Windows 10 laptop computers and HP computers desk?  I have a number of HP desktop computers and notebooks of

  • Mistake I did

    Hello I was in the FAQ, but could not find a response to a mistake I made. I got a usb thumb drive pluged in the PC with my Sansa e270, and I wanted to format the USB. But I clicked on the Sansa instead! as soon as I realized that I had messed up, I

  • I use Norton, but I can't turn the Defender windows manually to change my startup programs

    I was able in the past to close the start up programs with windows defender and Norton was carried out at the same time.  Windows Defender has also failed to take updates Microsoft has recently.  I know that Norton 360 is the protection of my compute

  • How do I open a pst file in Windows Live Mail

    I have my old archived messages in a .pst file. How can I open with Windows Live Mail?

  • Failed to retrieve the serial number CC

    Hi, click on get serial number, no information appears. No product name, no product, no platform version.I have received the summary with the serial number for Mac and Win two months ago, send me to AdobeCC dealer.Another problem: the previous licens