Creating Multiple Hyperlinks

Tagged: 

Viewing 8 reply threads
  • Author
    Posts
    • #96744
      Carl Brand
      Member

      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?

    • #96756

      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

    • #96761
      Carl Brand
      Member

      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.

    • #96762

      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! ;-)

      (^/)

    • #96764
      Carl Brand
      Member

      That is great news. I will look for the YouTube link.

    • #96765

      A little question:

      Does a numbers chain appear several times in the doc? or only once?

      (^/)

    • #96766
      Carl Brand
      Member

      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 B

      Model # 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

    • #96770

      In fact, no video! [the script is too “fast and furious”!] =D

      Hyperlinks

      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!

      (^/)

    • #109298
      Carl Brand
      Member

      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…

Viewing 8 reply threads
  • You must be logged in to reply to this topic.
>