Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to Batch edit hyperlinks in InDesign?

New Here ,
May 28, 2019 May 28, 2019

I imported an Excel spreadsheet of media coverage into my ID document, which includes hyperlinks. What I'm trying to do is batch edit each hyperlink so instead of showing as "http : / / www(dot)xxx(dot)com" it shows as "Link," but when I do it manually it deletes the entire hyperlink. Is there a better way to do this besides manually for 200+ pieces of coverage?

{Renamed by MOD}

{Link sanitized by MOD}

3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 31, 2019 May 31, 2019

Hi Erica,

Thanks for reaching out. As per your query, you are trying to Batch Change Hyperlinks across the InDesign document. Here is a detailed article about it: https://indesignsecrets.com/batch-change-hyperlinks-across-a-whole-indesign-document.php

Let us know if this helps or if you need any further assistance.

Regards,

Srishti

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2019 May 31, 2019
LATEST

Try this script for batch replacing the actual URL info:

Re: Batch rename Hyperlinks

However, I believe that you don't actually wish to change the actual link, just the text "description".

You can do this with a GREP Find/Replace, preserving the actual link.

Now, what the actual GREP FIND code should be is debatable, however, this worked for my simple tests:

(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?

Or this one would be more robust:

(?:(?:https?|ftp):\/\/|\b(?:[a-z\d]+\.))(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?

The REPLACE text would just be:

Link

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