Question
Script to select links only in the panel
- April 10, 2024
- 4 replies
- 1809 views
Hey guys.
I need help selecting links in the panel. Is there any script (or can someone help me create it) so that I can select the links in my document only in the links panel? And I also need the script to select only links that have a piece of the indd file name in their name.
Ex:
My indesign file has the name: "teste_name.indd"
My links have names:
test_name_img1.jpg
test_name_img2.jpg
test_name_img3.jpg
img_10
img_11
Then, the script will select only the links in the panel ((because these files (in the panel) are the ones whose name is the same as the file name.))
can anybody help me?
I could only think of this, but it doesn't work:
var doc = app.activeDocument;
for (var d = doc.links.length-1; d >= 0; d--) {
var link = doc.links[d];
app.select(link);
}
can anybody help me? I would need this script to add to another larger one that I am creating.
Exemple in image.
