In the code i modified find
Code: Select allif (fonts[x].font === aFont && fonts[x].size === aSize && fonts[x].color === aColor && fonts[x].leading === aLeading) {
and change to
Code: Select all if (fonts[x].font === aFont && fonts[x].size === aSize && fonts[x].color.rgb.hexValue === aColor.rgb.hexValue && fonts[x].leading === aLeading) {
then find
Code: Select allvar aLeading = localize("$$$/Menu/Text/TextLeading/Auto=Auto");
and change to
Code: Select allvar aLeading = "";
That should fix the two problems you had with my edits.
If you are not happy with that, all of my changes are in the function getFonts ( with the addition of adding a function above getFonts ) so you only need to compare that one function to find the parts of my edits you want to keep.
"rangeList" Questions and Problems
-
mycort
"rangeList" Questions and Problems
Thanks a lot Mike, this definitely saved me tons of time and very easy to understand......this now works perfectly and as designed. Thank you so much for your time and effort, always valued greatly.