How do I loop through selected links?
Hi!
I'm looking for clues on how to run a script on selected links (selected in the Links window).
Like this sample script that runs an alert when links are missing:
var aDoc = app.activeDocument;
for(var n = 0; n < aDoc.links.length; n++) {
var aLink = aDoc.links
if (aLink.status == LinkStatus.linkMissing) {
alert(aLink.filePath);
}
}
Is there something like LinkStatus.linkSelected?
Or some other way for the script to sort out the selected links.
Any input would be extremely appreciated!
Thanks!
/Peter