Copy link to clipboard
Copied
Hi
I write text frame using
app.selection[0].paragraphs[0].parent.exportFile(ExportFormat.INCOPY_MARKUP,'d:\\test.icml');
and i need to unlink this frame.
i use this command
app.activeDocument.links[0].unlink();
But it is not good solution because if i have more frames i don't know which link i must unlink
Thanks for advice
Copy link to clipboard
Copied
app.activeDocument.links.item('test.icml').unlink() should do it.
Copy link to clipboard
Copied
Ok thanks
I have another question. Can i unlink if i know only text frame?
Thanks
Copy link to clipboard
Copied
Hi Robert,
that should work:
myTextFrame.parentStory.itemLink.unlink();
Regards,
Uwe
Copy link to clipboard
Copied
Thank for help