How can we improve Adobe InDesign SDK

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:

app.documents[0].links[0].update();

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
app.open (File(s));
app.documents[0].links[0].update();

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.

3 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Peter Kahrel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Jim Birkenseer commented  ·   ·  Flag as inappropriate

        Hi Peter,

        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.

      Feedback and Knowledge Base