Current code (using parentTextFrames) case-1: // no span varselText=fn.characters.itemByRange(fn.characters[0], fn.characters[-1]); try{ selText.duplicate(LocationOptions.AT_END, tf.texts[0]); } catch(e) { alert(e);} break; case 0: // spans var start=fn.lines[0].characters[0]; var lines=fn.lines.everyItem().getElements(); for(vari=0; i<lines.length-1; i++) { if(lines[i].parentTextFrames[0] !==lines[i+1].parentTextFrames[0]) { //we have a split footnote here varend=lines[i].characters[-1]; break; } } var selText=fn.characters.itemByRange(start, end); selText.duplicate(LocationOptions.AT_END, tf); break; I still need to add the code to get the second part of the footnote
... View more