I created a script for InDesign using JavaScript, but do not know about creating one 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 gives me this resulting:
ButIneedthe"R $" also aligned someone could help me.