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

Can't remove links without updating them.

Community Beginner ,
Mar 06, 2023 Mar 06, 2023

Copy link to clipboard

Copied

So. I've got hundreds of text boxes with linked Excel data. Many of them have been edited in InDesign, so the content from the linked Excel files is out of date. If I could just unlink the content, that would be perfect. But here's the thing: there's no option to unlink.

 

When linked content is out of sync with the source, the only options are to update the link or relink. The option to remove the link for text content only appears for updated links. (See the attached screenshot.)

 

Looking around for solutions, the only answer I've found is to copy-paste the content into a new text box. That's not really practical when you're talking about hundreds of precisely positioned text boxes.

 

Suggestions?

TOPICS
Bug , Feature request , How to , Sync and storage

Views

446

Translate

Translate

Report

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 ,
Mar 06, 2023 Mar 06, 2023

Copy link to clipboard

Copied

Should be pretty easy to automate through scripting - the copy&paste operation - can you share sample INDD file? 

 

Votes

Translate

Translate

Report

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 Beginner ,
Mar 06, 2023 Mar 06, 2023

Copy link to clipboard

Copied

Sure -- here's a fragment of the file.

Votes

Translate

Translate

Report

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 Beginner ,
May 06, 2023 May 06, 2023

Copy link to clipboard

Copied

Still looking for a solution here. Any suggestions?

Votes

Translate

Translate

Report

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 06, 2023 May 06, 2023

Copy link to clipboard

Copied

LATEST

Sorry, looks like I've missed your last message 😞

 

Unfortunately, you can't just delete link - you need to delete its parent - in this case TextFrame:

 

main();

function main()
{
var  doc = app.activeDocument;

    for (var i = doc.links.length-1; i >= 0 ; i--) 
    {
        if (doc.links[i].status == 1819109747)
        {
            doc.links[i].parent.textContainers[0].remove();
        };
    };
};

 

You need to save this code as "DeleteMissingLinks.js" - or something like that 😉 - into scripts folder - easiest way for you will be to hover over any USER script in Scripts Panel and:

 

RobertTkaczyk_0-1683397600054.png

... so you can get into the right folder - then use Notepad or something and save as Plain Text.

 

Votes

Translate

Translate

Report

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