1 Reply Latest reply on Jan 13, 2010 4:09 PM by sifusmutus

    Possible script to add aditional text to end of url hyperlink?

    sifusmutus

      Hi all.

       

      I've been working with InDesign CS3 to convert a catalogue into iPDF format for web distribution. This involves me going through the document page by page hyperlinking each program in the catalogue to the corresponding url. Recently I've been informed that all these hyperlinks need to be amended by addition of a few characters to the end of every url. This wouldn't be a problem, but there is a couple thousand hyperlinks that would need to be updated.

       

      This brings me to my question: Does anyone know of a script that could update all my hyperlinks and add extra characters to the end?

       

      Current Hyperlink examples:

      http://www.websitename.com.au/Product.aspx?id=MGJ3

      http://www.websitename.com.au/Product.aspx?id=RWQ6

       

      So as you can see, most of the URL stays the same, the only bit the changes is the product code at the end.

       

      This is an example of the modification I need to make:http://www.websitename.com.au/Product.aspx?id=RWQ6  + '-22058'

       

      This is the result I need:

      http://www.websitename.com.au/Product.aspx?id=MGJ3-22058

      http://www.websitename.com.au/Product.aspx?id=RWQ6-22058

       

       

      Thanks in advance.

      http://www.websitename.com.au/Product.aspx?id=MGJ3  + '-22058'