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

How to delete broken links in the link window?(The graph no longer exists)

Guide ,
Feb 20, 2020 Feb 20, 2020

I also want this document.
But these link diagrams are all lost(The graph no longer exists), I want to clear these links
Can know how to delete broken links in the link window

Thank you~

20200220155835.png

 

The file is here.

http://www.fileconvoy.com/dfl.php?id=g11c99b05374c734f1000229268b6cdc5357c36611d

 

TOPICS
EPUB , How to , Scripting
1.8K
Translate
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 ,
Feb 20, 2020 Feb 20, 2020

To remove a link, you remove its parent, which is the rectangle that a graphic sits in. There's a test whether a link's graphic is missing:

links = app.documents[0].links.everyItem().getElements();
for (i = links.length-1; i >= 0; i--) {
  if (links[i].status === LinkStatus.LINK_MISSING) {
    links[i].parent.remove();
  }
}

P.

Translate
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
Guide ,
Feb 23, 2020 Feb 23, 2020

Hi  Peter_Kahrel 

I can't complete this script by yourself, can you send me a complete one?
thank you very much

Translate
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 ,
Feb 24, 2020 Feb 24, 2020

The script I posted may not look like much, but it's a complete script. Did you try to run it?

Translate
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 ,
Feb 24, 2020 Feb 24, 2020

Peter, this OP is all over the place with a lot of other, sometimes strange, questions. It looks like the OP is learning InDesign from the beginning, so I doubt he knows what to do with your script lines, maybe explain that a bit more 😉

 

Translate
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 ,
Feb 24, 2020 Feb 24, 2020

Thanks, Frans. We'll see what he or she has to say.

Translate
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
Guide ,
Feb 27, 2020 Feb 27, 2020

Hello ~
You are right, I am a learner, a research learner, never stop ...
Thank you great god ~

Translate
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 ,
Feb 27, 2020 Feb 27, 2020
LATEST

Hi 喜狼_edny,

the IDML file you provided has no links at all. In fact there is no single page item. Just a few guides.

So the solution is: Export to IDML, open as InDesign document.

 

FWIW: So that we can see into the original issue with the links provide the InDesign document and not an IDML file.

 

Regards,
Uwe Laubender

( ACP )

Translate
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