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

Batch image relinking to a different path in an entire book / all open documents

Explorer ,
Jul 28, 2022 Jul 28, 2022

I am looking for some help ...

 

I have a book with over 30 documents contained inside it, they are all relatively the same except minor copy changes, and I no longer want to use the same ie: "Logo" file that is being used in ALL of the documents. I want to update the "Logo" image link in all of the documents to a different version/different file/ different location etc.

 

Is there a way to do this at the same time across all of the documents in the book?

 

Is there also a way to do this across all open documents?

 

Thank you!

 

 

TOPICS
How to , Scripting
637
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

correct answers 3 Correct answers

Valorous Hero , Aug 02, 2022 Aug 02, 2022

Here (at the bottom) I made a minor modification of my Relink images script. I called it Relink images by path.

Add your file name and path to the arguments file or hardcode it into the script:

2022-08-02_12-42-54.png

You can use it like so:

2022-08-02_12-51-32.png

 

Translate
Community Expert , Aug 02, 2022 Aug 02, 2022

Here it is: https://creativepro.com/files/kahrel/indesign/batch_convert.html

But Kas's solution is a bit simpler by now since he updated his script.

Translate
Valorous Hero , Aug 03, 2022 Aug 03, 2022

I updated the script. https://bit.ly/3A3Zqqv
Now if you are using an arguments file, use the 'pipe' character to separate elements in the array because file and folder names may contain commas, semicolons, etc. but not pipes. A sample arguments file is included with the script.

Translate
Community Expert ,
Aug 01, 2022 Aug 01, 2022

Two options:

1) just change the file for the linked logo - then open all files in the book and update links, 

2) custom script - if you need to do this more often 😉 

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
Explorer ,
Aug 01, 2022 Aug 01, 2022

That's where the issue is... I need to link the logo to a totally different file in a totally different location on the server, so I cant just rename the file and updated all links.

 

Would you know a way to do that?

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 ,
Aug 02, 2022 Aug 02, 2022

But do you need to do it only once - because design changed - or will you need to do it more often?

Why can't you just replace the file and update all files? It would take you less time than waiting for a script... 

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 ,
Aug 02, 2022 Aug 02, 2022

You can organise a script that updates one document, then use a batch processor to apply the script to a folderful of files. There are several threads in this forum that discuss those batch processors. One was written by Kasyan Servetsky, another one by me.

P.

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
Mentor ,
Aug 02, 2022 Aug 02, 2022

Dear Peter! Can you give link to your script here? I know that we can find it after some search, but better to have it direct link for all future forum readers. Thanks in advance. 

 

Remember, never say you can't do something in InDesign, it's always just a question of finding the right workaround to get the job done. © David Blatner
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 ,
Aug 02, 2022 Aug 02, 2022

Here it is: https://creativepro.com/files/kahrel/indesign/batch_convert.html

But Kas's solution is a bit simpler by now since he updated his script.

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
Explorer ,
Aug 02, 2022 Aug 02, 2022

Thank you!

 

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
Valorous Hero ,
Aug 02, 2022 Aug 02, 2022

Here (at the bottom) I made a minor modification of my Relink images script. I called it Relink images by path.

Add your file name and path to the arguments file or hardcode it into the script:

2022-08-02_12-42-54.png

You can use it like so:

2022-08-02_12-51-32.png

 

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
Explorer ,
Aug 02, 2022 Aug 02, 2022

Thank you!

 

Do you have a link to your updated script "Relink images by path" ? or was the minor change just to add image paths?

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
Valorous Hero ,
Aug 02, 2022 Aug 02, 2022

The link to the updated script is at the bottom of the page I mentioned in my previous post:

KasyanServetsky_0-1659474314527.png

 

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
Valorous Hero ,
Aug 03, 2022 Aug 03, 2022

I updated the script. https://bit.ly/3A3Zqqv
Now if you are using an arguments file, use the 'pipe' character to separate elements in the array because file and folder names may contain commas, semicolons, etc. but not pipes. A sample arguments file is included with the script.

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
Explorer ,
Aug 03, 2022 Aug 03, 2022
LATEST

This is EXACTLY what I needed thank you!

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