Hello,
We use a program that creates barcodes, and also creates its own line of unsolicited gobblety gook text. This text is just random numbers and letters at .1pt, rotated 90 degrees, and hidden under the first bar of the barcode.
The type I want to keep is a weird size - 5.98 pt
I was having a hard time writing a script that would select just this tiny type and delete it, so I thought I would move all vector art to its own new layer, move all type over 3 pt size to another new layer, and then just delete the original remaining layer that contains the type I don’t want.
This trial is not hitting the mark either. Any suggestions please? Thanks!
tell application "Adobe Illustrator"
set allPageItems to every page item of group item 1 of document 1
move allPageItems to beginning of layer 1 of document 1
set barLayer to make layer at document 1 with properties {name:"Bars"}
set textLayer to make layer at document 1 with properties {name:"Number"}
set vectorItems to (every vector item)
move vectorItems to barLayer
set textItems to (every text item of document 1 whose size is greater than 3)
move textItems to textLayer
set deleteLayer to "Layer 1"
delete (every layer of document 1 whose name starts with deleteLayer)
end tell