CHANGE: font, font size, leading, kerning, tracking, etc of selected text frames
Was attempting to modify the below snippet to also affect selected text frames (as opposed to only the selected text within one text frame), in order to affect the text within those frames to assign text attributes to them.
I attempted attaching .pageItem and .child etc but received ‘object’ oriented errors.
Ideally I want to attribute everything listed in the character panel to the selected text frames, in the below screenshot, (i.e. font family, font style name, font size, leading, kerning, tracking, etc.).
Any help is very much appreciated.
Cheers.
var sel = app.selection;
for(var n=0;n<sel.length;n++)
{
sel
.tracking=30; sel
.kerningMethod="Metrics"; };

