Creating Multiple Hyperlinks
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Creating Multiple Hyperlinks
Tagged: hyperlinks
- This topic has 8 replies, 3 voices, and was last updated 5 years, 7 months ago by Carl Brand.
-
AuthorPosts
-
-
August 14, 2017 at 11:47 am #96744Carl BrandMember
I am creating a catalog that has multiple 7 digit SKU numbers that need to link to a consumer website.
The URL is the same with the only variable being the SKU number at the end of the URL string.
Is there a script that will make it easier than creating each one manually?
-
August 14, 2017 at 10:17 pm #96756Kai RübsamenMember
I don’t think so. Based on your situation, the digits must first be found (e.g. as character style or with GREP), then the hyperlinks must be created and maybe renamed. If you interested in a paid script, you can contact me directly at [email protected]
Kai
-
August 15, 2017 at 5:45 am #96761Carl BrandMember
Thank you for the reply. It does not seem like there is a solution out there. I will contact you if we want to develop something.
-
August 15, 2017 at 10:20 am #96762Michel Allio for FRIdNGEParticipant
Carl,
I agree with Kai! Such a script doesn’t seem to exist in the public domain!
But you’re lucky [or not!]! I’ve found in my Scripts Library something i’ve written 2 years ago! …
I’ve just modified it to play exactly your game [I’ll give more details!]! I’m going to post a video on YouTube [link here soon]!
As Kai, personally not for free! … but such a script already exist! ;-)
(^/)
-
August 15, 2017 at 10:58 am #96764Carl BrandMember
That is great news. I will look for the YouTube link.
-
August 15, 2017 at 11:12 am #96765Michel Allio for FRIdNGEParticipant
A little question:
Does a numbers chain appear several times in the doc? or only once?
(^/)
-
August 15, 2017 at 11:31 am #96766Carl BrandMember
No the number would only appear once.
Ideally what we would want the script to do is.1) Look for Model #s that we identify in column A
2) Create a Hyperlink using that Model # as the text anchor with a URL we assign in Column BModel # Hyperlink
866525 https://business.officedepot.com/catalog/catalogSku.do?id=866525
866744 https://business.officedepot.com/catalog/catalogSku.do?id=866744
866858 https://business.officedepot.com/catalog/catalogSku.do?id=866858
867153 https://business.officedepot.com/catalog/catalogSku.do?id=867153
867308 https://business.officedepot.com/catalog/catalogSku.do?id=867308
-
August 15, 2017 at 1:07 pm #96770Michel Allio for FRIdNGEParticipant
In fact, no video! [the script is too “fast and furious”!] =D
Explanations (per screenshot):
1 | Before launching the script, we can see in text 4 products mentioned by their 6-numbers codification.
2-3 | The op launches the script:
a) [optional] The script applies a char style named “Hyperlink” => now, each 6-numbers codification visually appears as an hyperlink [“dark-blue” text and underlining color].
b) The script applies a condition named “Hyperlink” => if we had new 6-numbers codifications, the script will only treat these new codes!
c) The script associates to each 6-numbers codification an hyperlink [defined as you previously indicate] whose the name and the 6 last chars of the url are the 6-numbers codification!4 | If the op launches the script again without having added other codifications, nothing will happen!
5-6 | If the op adds new 6-numbers codifications, he will need to launch the script again! The process will only play [like here] with the new codes, not the ones already treated!
(^/)
-
August 9, 2018 at 6:25 am #109298Carl BrandMember
I am returning to this project after a long absence. This is exactly what we need-was it available somewhere? I do have a script but it is not functioning. As most of mine aren’t in the latest version of InDesign. Any help is deeply appreciated as this is very time consuming work…
-
-
AuthorPosts
- You must be logged in to reply to this topic.