Skip to main content
Participant
December 3, 2009
Question

"relink" problem in InDesign CS4: links are updated automatically

  • December 3, 2009
  • 3 replies
  • 4266 views

Hi folks,

we use a script to relink our InDesign documents when the links have been moved on the file system.

Inside the script we just call link.relink(...) but not link.update().

We experience a different behavior between CS3 and CS4 after the script has run.

CS3:

Links that have been modified after moving and before relinking are then shown as modified (with a yellow mark ) in the Links tab.

CS4:

The links are all shown as uptodate.

Seems like the update()-function has been called automatically.

Is there a option to just relink the links in CS4 but not to update them?

Kind regards

Matthias Vieback

This topic has been closed for replies.

3 replies

MViebackAuthor
Participant
April 8, 2010

Hi again,

sorry for this late reply.

I will explain our 'solution' that we use now.

Important: You will only find images whose visible bounds actually have changed.

1. Go through the 'allGraphics' object of each page and save the following for each graphic item

- parent

- index

- copy of the visibleBounds

2. Relink the document

3. For each saved object check whether visibleBounds has changed by using the parent's 'allGraphics' array and the saved index.

You must not do anything else in between what might change the object indizes

So here you go...

Kind regards

Matthias Vieback

Kasyan Servetsky
Legend
December 4, 2009

You can put  myLink.update(); into try...catch statement:

try {
    var myCurrentLink = myLink.update();
} catch(e){}

mahony2k
Participating Frequently
December 29, 2009

Hey Kasyan,

i tried your script ( http://kasyan.ho.com.ua/relink.html ) in which this line you mentioned is integrated, but it's still updating automaticly. Do you know why?

Thanks in advance,

Toni

Kasyan Servetsky
Legend
December 29, 2009

Hi Toni,

This problem has been already discussed in this thread: http://forums.adobe.com/message/2267353#2267353

In short, after 6.0.4 update, we don't need to use update() method  while relinking images by script. Putting update()into try-catch block makes scripts compatible with version of inDesign 6.0.4 and prior to it.

Kasyan

Inspiring
December 3, 2009

Try with a versioned script. I'd guess though that the new behaviour is just because of the major rewrite of the link architecture.

Dirk