JS for images selected in the LINKS panel
Hi, anyone knows of a JS to get the images properties e.g.name as selected (highlighted) in the LINKS Panel?
Thank you.
Hi, anyone knows of a JS to get the images properties e.g.name as selected (highlighted) in the LINKS Panel?
Thank you.
If there is exactly one link selected, then you can use this technique to find out about the link:
try {app.menuActions.item("Go To Link").invoke(); } catch(e) {};
That will select the linked item and so you can then examine the selection to get the information you want.
If you're using a non-English version of InDesign, you'll need to localize that string.
Dave
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.