Copy link to clipboard
Copied
Following the script of this answer, https://forums.adobe.com/thread/1470744 , it is possible instead of deleting all frames with missing links to leave them at the document but change the graphic style?
Copy link to clipboard
Copied
var link, image, frame,
doc = app.activeDocument,
links = doc.links,
counter = 0;
for (var i = links.length-1; i >= 0; i--) {
if (links.status == LinkStatus.LINK_MISSING) {
try {
link = links;
image = link.parent;
frame = image.parent;
frame.appliedObjectStyle = "myObjectStyleName"; //or better to use direct reference = doc.objectStyles.itemByName ("myObjectStyleName");
counter++;
}
catch (err) {
$.writeln(i + " - " + err);
}
}
}
Here you are…