Copy link to clipboard
Copied
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~
The file is here.
http://www.fileconvoy.com/dfl.php?id=g11c99b05374c734f1000229268b6cdc5357c36611d
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Peter_Kahrel
I can't complete this script by yourself, can you send me a complete one?
thank you very much
Copy link to clipboard
Copied
The script I posted may not look like much, but it's a complete script. Did you try to run it?
Copy link to clipboard
Copied
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 😉
Copy link to clipboard
Copied
Thanks, Frans. We'll see what he or she has to say.
Copy link to clipboard
Copied
Hello ~
You are right, I am a learner, a research learner, never stop ...
Thank you great god ~
Copy link to clipboard
Copied
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 )
Find more inspiration, events, and resources on the new Adobe Community
Explore Now