hello all you smart guys.
I get a big complex files from another designers every month for further processing. Among other not-so-good habits, they usually do not use layers.
To make layout a bit more organized, I move text to its own layer - simple task, have script for it. But it does the job straightforward - exactly 'as advertised' (Jongware's expression - I like it so )
Unfortunately, those designers didn't bother much with 'frame content' option. They can draw a frame with a text tool, fill it with color and use it as a background for some artwork or whatever...
my script 'text frames to separate layer' creates a mess on such pages, and locate it - not always is an easy task. Document usually has over 200 pages...
So, I'm dreaming about some magic script, which is able to "prepare" text for moving, I mean, to find and process:
case1: empty text frame with no fill/outline - remove (delete)
case2: empty text frame with any fill/outline - convert to 'unassigned'
case3: text frame with the same color applied to text and the frame itself (yes, it happens!) - well, maybe just 'select and stop'? I'm afraid it's too complicated to remove text from such a frame and then treat the frame as 'case2'?
any suggestions would be greatly appreciated...