Hi,
I have this great script Jongware made for me to change full state names to AP Style abbrevations. It is possible to run it only on a specific paragraph style.
I am hoping to apply it only to captions and not the whole document.
Thanks in advance for any help.
Oh, this is the script for the abbreviations
}app.findGrepPreferences = app.changeGrepPreferences = null;}app.activeDocument.changeGrep();app.changeGrepPreferences.changeTo = abbrevs[a][0];app.findGrepPreferences.findWhat = “b”+abbrevs[a][1]+”b”;{for (a in abbrevs)app.findGrepPreferences = app.changeGrepPreferences = null;”Wisconsin”, “WI” ], [ “Wyoming”, WY ] ];”Virginia”, “VA” ], [ “Washington”, WA ], [ “West Virginia”, WV ], [], [ “Utah”, UT ], [ “Vermont”, VT ], [ “Virgin Islands”, VI ], [SC ], [ “South Dakota”, SD ], [ “Tennessee”, TN ], [ “Texas”, “TX”[ “Puerto Rico”, PR ], [ “Rhode Island”, RI ], [ “South Carolina”,OK ], [ “Oregon”, OR ], [ “Palau”, PW ], [ “Pennsylvania”, PA ],], [ “Northern Mariana Islands”, MP ], [ “Ohio”, OH ], [ “Oklahoma”,”New York”, NY ], [ “North Carolina”, NC ], [ “North Dakota”, “ND”NH ], [ “New Jersey”, NJ ], [ “New Mexico”, NM ], [“Montana”, MT ], [ “Nebraska”, NE ], [ “Nevada”, NV ], [ “New Hampshire”,”Minnesota”, MN ], [ “Mississippi”, MS ], [ “Missouri”, MO ], [“Maryland”, MD ], [ “Massachusetts”, MA ], [ “Michigan”, MI ], [“Louisiana”, LA ], [ “Maine”, ME ], [ “Marshall Islands”, MH ], [IN ], [ “Iowa”, IA ], [ “Kansas”, KS ], [ “Kentucky”, KY ], [“Hawaii”, HI ], [ “Idaho”, ID ], [ “Illinois”, IL ], [ “Indiana”,FM ], [ “Florida”, FL ], [ “Georgia”, GA ], [ “Guam Gu”, GU ], [[ “District Of Columbia”, DC ], [ Federated States Of Micronesia,], [ “Colorado”, CO ], [ “Connecticut”, CT ], [ “Delaware”, DE ],”AS” ], [ “Arizona”, AZ ], [ “Arkansas”, AR ], [ “California”, “CA”var abbrevs = [ [ “Alabama”, AL ], [ “Alaska”, AK ], [ “American Samoa”,var a;{function doReplace ()app.doScript(doReplace, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, “Expand State Abbreviations”);elsedoReplace();if (app.version < '6')//DESCRIPTION:Expand US State Abbreviations