Hi, guys. I confess that I am not a scripter: I have tried and failed (twice). So please can anyone help me writing a small script? This is what I need:
Step 1:
Starting with the cursor type inserted to imediatly to the right of signal +, apply Subscript to the number 2 (that is, to the character immediatly before the last char in the word.
Step 2:
Apply a Character Style to the last char in the word.
Step 3:
Insert the cursor imediatly to the left of the last char and apply -550 kerning unities.
Step 4:
Move the cursor imediatly to the left of and apply 50 kerning unities.
We start with a) and end in b).
My best regards and I thank everybody in advance.
Maria
app.selection[0].words[0].insertionPoints[-2].kerningValue = -550;
app.selection[0].words[0].insertionPoints[-3].kerningValue = 50;
app.selection[0].words[0].characters[-1].appliedCharacterStyle = "My Style"; // Change to style name
app.selection[0].words[0].characters[-2].position = Position.SUBSCRIPT;
This link http://forums.adobe.com/message/4567293#4567293 might be of interest.
Trevor
North America
Europe, Middle East and Africa
Asia Pacific