CC2019: Can't update or relink a link when a document is opened by a script.
A fault introduced in CC2019: can't update or relink a link when a document is opened by a script.
Steps to reproduce:
1. To verify that with an existing open document the problem does not occur:
a. Start a new InDesign document
b. Place a graphic on the first page
c. Run this script:
No error occurs.
2. To reproduce the error:
a. Save the document created in step 1 and close it.
b. Run this script:
s = '/d/test/links.indd'; // Use your string
Expected result: The links should be updated.
Actual result: "Error: This file is already open by another user or another application. This file may be stored on a network server and cannot be opened until the other user closes it."
Note 1: It doesn't matter that in this example the link doesn't actually need updating. The result is the same with out-of-date links.
Note 2: The problem is not confined to update(): it also occurs when you relink a link.
Jim Birkenseer commented
FWIW, I was not able to replicate this issue on Mac (High Sierra) or Windows 10 Pro using the steps in the message. I was able to test this using ID v14.0.0 and v14.0.1 (because I hadn't updated ID before doing this test) and no errors were reported.