As Jacquouille la Fripoulle [“Okay! ……”] in the movie “The Visitors” or Gaston Lagaffe [“M’enfin! …”] in the comic strip of the same name, I thought Raphael would launch his famous call: ” Akiwa! … “, but not this time! ;-)
Simplistic view:
Adjust the kerning value between ” or ‘ or ! and a number when the font used is Arial and the number is superscript!
// by FRIdNGE [October 2018]
//————————————————–
var myFindWhat = “[”‘!]d”,
myAppliedFont = “Arial”,
myKerning = 500,
myCharPosition = Position.SUPERSCRIPT;
//————————————————–
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = myFindWhat;
app.findGrepPreferences.appliedFont = myAppliedFont;
myFound = app.activeDocument.findGrep();
var F = myFound.length, f,
myCounter = 0;
for ( f = 0; f < F ; f++ ) {
if ( myFound[f].insertionPoints[1].kerningValue != myKerning && myFound[f].characters[1].position == myCharPosition ) {
myFound[f].insertionPoints[1].kerningValue = myKerning;
myCounter++
}
}
app.findGrepPreferences = null;
alert(“Done! … [” + myCounter + “]\rby FRIdNGE, october 2018”)
Have a good day! ;-)