Select and delete objects by "type" Javascript
I am trying to write a Javascript snippet that will select all "Text Objects" and "Brush Objects" on the current document's visible, unlocked layers, then delete the objects.
This thread about "Execute Menu Item" seemed promising, but I could not figure out the proper object names to use. Executing a menu item may not be the most efficient approach anyway.
Can someone help me with this? Thanks.
