How to detect a completely empty text frame (incl. no continued footnotes, no continued tables)
hi,
this problem i've ignored long time...
say have script deletes empty text frames. it's easy
find empty text frame like:
if (myframe.characters.length < 1) -- frame empty!
but ... doesn't work 2 cases (at least, can think of):
(1) if text frame contains second half of footnote
continued previous text frame(s); (2) if text frame contains
the second half of table continued previous text frame(s).
in both these cases (where frame contains second half of
table or footnote), simple way of checking whether frame
empty (as showed above) returns false positive -- character
length of frame 0, frame not empty.
any idea how solve this?
thanks,
ariel
especially continuation tables, tricky , messy, , cs5+ require different approaches earlier versions. if deleting frames end of textcontainers array, maybe can delete frames until last frame oversets. if does, put frame back.
it's easier unthread last frame. if previous frame not overset, delete last frame; if overset, restore thread.
peter
More discussions in InDesign Scripting
adobe
Comments
Post a Comment