Skip to main content
Inspiring
July 27, 2018
Answered

Make clickable web hyperlink from linked images, list.txt...

  • July 27, 2018
  • 2 replies
  • 1410 views

Hi

We have some books with imported zapcodes png images.

I make one excel table or txt list where is in first column image name (image.png) and in second web link where is hyperlink destination.

  

12728_Allegro_5_1.pnghttps://www.some-link/1649ab4e-b145-4a11-9e04-905083736891/
12728_Allegro_5_2.pnghttps://www.some-link/dodatni-digitalni-sadrzaji/36f8f8bb-aeb9-4b30-9daa-4e465c790da5/
12728_Allegro_5_3.pnghttps://www.some-link/dodatni-digitalni-sadrzaji/d7c7b933-63d4-4ac1-99d9-0a35c120ce91/
12728_Allegro_5_4.pnghttps://www.some-link/dodatni-digitalni-sadrzaji/f44de7b6-c0e6-4bc2-b9ef-ffe0e437ac84/

Need script which can make hyperlink for this link/images in the list.

Thanks

This topic has been closed for replies.
Correct answer Kasyan Servetsky

A while ago I wrote a function which gets data directly from Excel which is, in my opinion, unfairly ignored by the scripting community.

And here I wrote a quick & dirty script that does what you want (at least, as far as I understood your requirements).

Here I posted the package:

  • script
  • excel file
  • before and after InDesign documents for testing
  • links

The starting point: PNGes are placed, no hyperlinks created yet.

The data in Excel file

I used some links to my site because yours don't work.

Run the script and select the xlsx-file

For long spreadsheets the progress bar is useful

The script completed

Hyperlinks have been created and are working

Finally, if you don't like the result, you can 'Undo' the whole script

Hope it helps!


Kasyan

P.S. Warning: this script illustrates -- in the simplest possible form -- the approaches I use for automating common tasks such as mass-production of hyperlinks and using existing data in Excel. I don't promise it would for everyone on all occasions.

2 replies

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
July 29, 2018

A while ago I wrote a function which gets data directly from Excel which is, in my opinion, unfairly ignored by the scripting community.

And here I wrote a quick & dirty script that does what you want (at least, as far as I understood your requirements).

Here I posted the package:

  • script
  • excel file
  • before and after InDesign documents for testing
  • links

The starting point: PNGes are placed, no hyperlinks created yet.

The data in Excel file

I used some links to my site because yours don't work.

Run the script and select the xlsx-file

For long spreadsheets the progress bar is useful

The script completed

Hyperlinks have been created and are working

Finally, if you don't like the result, you can 'Undo' the whole script

Hope it helps!


Kasyan

P.S. Warning: this script illustrates -- in the simplest possible form -- the approaches I use for automating common tasks such as mass-production of hyperlinks and using existing data in Excel. I don't promise it would for everyone on all occasions.

Peter Kahrel
Community Expert
Community Expert
July 29, 2018

> which is, in my opinion, unfairly ignored by the scripting community

Maybe you didn't advertise it enough. Looks great!

Kasyan Servetsky
Legend
July 29, 2018
Maybe you didn't advertise it enough. Looks great!

I advertised (mentioned) it many times here and on the neighbouring InDesign forum, but almost didn't get any feedback.
Here I gave a practical example of its usage. My main idea which I want to advertise is we can combine InDesign scripts (including JS) with other scriptable apps -- for example, Excel, Access, Word, Outlook, etc. -- written in VB and AppleScript.

— Kas

Peter Kahrel
Community Expert
Community Expert
July 29, 2018

> Need script which can make hyperlink for this link/images in the list.

This forum is not a place where you ask people to write scripts for you -- not for free, anyway. So if you need a script, hire somebody.

Kasyan Servetsky
Legend
July 29, 2018

https://forums.adobe.com/people/Peter+Kahrel  wrote

> Need script which can make hyperlink for this link/images in the list.

This forum is not a place where you ask people to write scripts for you -- not for free, anyway. So if you need a script, hire somebody.

Oops! Sorry, Peter. It won't happen again. I just wanted to write something simple for fun. Going on vacation in a couple of days so won't get to computer for about a month.

— Kasyan