• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can i unlink incopy document?

Participant ,
Mar 20, 2017 Mar 20, 2017

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

TOPICS
Scripting

Views

797

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

app.activeDocument.links.item('test.icml').unlink() should do it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

Ok thanks

I have another question. Can i unlink if i know only text frame?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

Hi Robert,

that should work:

myTextFrame.parentStory.itemLink.unlink();

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

LATEST

Thank for help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines