Question
[CS3][JS] find/change quotation marks to typographer quotes
my document contains a lot of quotation marks but they are not typographic (the opening one and the closing one are similar (") i want them to be typographic. I tried this script and it doesn't work.
var myDoc = app.activeDocument;
app.findGlyphPreferences = NothingEnum.nothing;
app.changeGlyphPreferences = NothingEnum.nothing;
app.findGlyphPreferences.appliedFont = app.fonts.item("Times New Roman Regular");
app.findGlyphPreferences.glyphID = 5;
var myFoundItems = myDoc.findGlyph();
app.changeGlyphPreferences.appliedFont = app.fonts.item("Times New Roman Regular");
var r=0;
for(i=0;i<myFoundItems.length;i++){
app.changeGlyphPreferences.glyphID = 179;
myFoundItems(r).changeGlyph();
app.changeGlyphPreferences.glyphID = 180;
myFoundItems(r+1).changeGlyph();
r+=2;
}
