Copy link to clipboard
Copied
Illustrator command selects all textFrames in active document, but how to select textFrames in current selection?
Thanks.
This should reduce your current selection to just those that are text frames…
#target illustrator var doc = app.activeDocument; var sel = doc.selection; for (var i = 0; i < sel.length; i++) { if (sel.typename != 'TextFrame') { sel.selected = false; } }
Copy link to clipboard
Copied
This should reduce your current selection to just those that are text frames…
#target illustrator var doc = app.activeDocument; var sel = doc.selection; for (var i = 0; i < sel.length; i++) { if (sel.typename != 'TextFrame') { sel.selected = false; } }
Copy link to clipboard
Copied
Thanks, Muppet Mark. Works perfectly.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now