Created
May 15, 2013 14:11
-
-
Save Illyism/5584269 to your computer and use it in GitHub Desktop.
It removes all the missing links and keeps the frames.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Removes all missing images in the active document. | |
// Keeps the frames. | |
if (app.documents.length == 0) alert("No documents are open. Please open a document and try again."); | |
var doc = app.activeDocument; | |
var links = doc.links; | |
for (var i = 0; i<links.length; i++) { | |
if (links[i].status == LinkStatus.LINK_MISSING) { | |
links[i].parent.remove(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment