Skip navigation
Currently Being Moderated

Very small kerning script....

Aug 9, 2012 6:26 AM

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:

image.gif

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

 
Replies
  • Currently Being Moderated
    Aug 9, 2012 6:57 AM   in reply to Maria964

    Why does a) have a + sign and b) have some form of - sign?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 12:45 PM   in reply to Maria964
    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points