Please see js code below that is working fine in InDesign CS4. But not working in CS5.5.
Can anyone please see and let me know which object/properties has been changed in CS5.5.
while (!(element instanceof Page || element instanceof Application))
if (element instanceof Character)
element = element.parentTextFrames.parent;
element = element.parent;
if (element instanceof Page)
Thanks in advance,
Pageitems are now children of Spread not of Page objects.