"rangeList" Questions and Problems

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Mike Hale

"rangeList" Questions and Problems

Post by Mike Hale »

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.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

mycort

"rangeList" Questions and Problems

Post by mycort »

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.