Highlighted

JS to get the selected image link info

Participant ,
May 31, 2020

Copy link to clipboard

Copied

Hi there,

anyone can help? i needed a JS to get the selected image link info.

thank you very much..

try this with selected a link (not its frame);

alert(app.selection[0].itemLink.filePath);

and you have pick up the perperties as you need.

Topics

Scripting

Views

393

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

JS to get the selected image link info

Participant ,
May 31, 2020

Copy link to clipboard

Copied

Hi there,

anyone can help? i needed a JS to get the selected image link info.

thank you very much..

try this with selected a link (not its frame);

alert(app.selection[0].itemLink.filePath);

and you have pick up the perperties as you need.

Topics

Scripting

Views

394

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Enthusiast ,
May 31, 2020

Copy link to clipboard

Copied

try this with selected a link (not its frame);

alert(app.selection[0].itemLink.filePath);

and you have pick up the perperties as you need.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
May 31, 2020

Copy link to clipboard

Copied

Hi,

When link is not selected, an object where link is placed is selected, you can use

app.selection[0].allGraphics[0].itemLink

 

For all properties of link you can find from from the following documentation

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Link.html#d1e299136

 

 

Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Participant ,
Jun 01, 2020

Copy link to clipboard

Copied

Thanks all for the help and advice...

🙂

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...