Skip to main content
Inspiring
June 6, 2009
Answered

JS for images selected in the LINKS panel

  • June 6, 2009
  • 2 replies
  • 914 views

Hi, anyone knows of a JS to get the images properties e.g.name as selected (highlighted) in the LINKS Panel?

Thank you.

This topic has been closed for replies.
Correct answer Dave_Saunders

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

2 replies

Dave_SaundersCorrect answer
Inspiring
June 6, 2009

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

Inspiring
June 6, 2009

Thanks alot!!

interesting_Flower157F
Inspiring
June 6, 2009

As far as I know, there is no way of getting info about selected items in palettes.

That goes for all palettes, like paragraphstyles, links, layers and so on.

Perhaps there is a workaraound making your own window palette with the extendscript UI.