1
I created a script for Indesign using Javascript, however I am not able to create a last command to complete it:
myTable ();
function myTable(){
app.selection[0].tables.everyItem().appliedTableStyle = "Tabela";
var
mCols = app.activeDocument.textFrames[0].tables[0].columns[-1],
mTarget = mCols.cells.everyItem().texts.everyItem().getElements(),
len = mTarget.length;
while (len-->0)
mTarget[len].tabStops.add({
alignment: TabStopAlignment.CHARACTER_ALIGN,
alignmentCharacter: ",",
position: mCols.width -10
});
alert("Script myTable");
}
This script of mine gives me this resulting:
But I need the "R$" to line up too.
Put HTML here, not a pf image.
– Sergio
include the code and not a picture of it in your question
– Rafael Cunha
The "last command" you are talking about, is the alignment of "R$" with the "Item number" ?
– Marcelo Junior