Highlighted

Script to auto answer "edits have been made" dialog when updating links.

New Here ,
Sep 18, 2020

Copy link to clipboard

Copied

Hey everyone,

 

The lack of a "Yes to All" button when updating all links to a file is debilitating for me. I literally have to press enter almost 3,000 times for over an hour to do an "update all" on a large .xls doc (sometimes several times per day) because there is no "Yes to All" or "Ignore this Warning" option for the below dialog...

 

"Edits have been made to the imported version of "document name.here". You will lose these edits (with the exception of changes applied to spreadsheets through cell styles or table styles) when you update the link. Update anyway?"

 

 

All of my changes are always applied via cell and table styles, so the message doesn't even apply to me. It is a pretty infuriating waste of time for an easy "Yes to All" button addition. Adobe support seems to be a black hole for extreme use case issues like these. Could I use a script to suppress or auto answer this dialog? Maybe a universal on / off script for all user notifications might work as well? Not sure where to start.

Adobe Community Professional
Correct answer by brianp311 | Adobe Community Professional

You could try this to update all links in a document with dialog interaction suppressed.

 

 

var currIL = app.scriptPreferences.userInteractionLevel;
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

var links = app.documents[0].links.everyItem().getElements();
for (var i = 0; i < links.length; i++) {
    if (links[i].status == LinkStatus.LINK_OUT_OF_DATE) {
        links[i].update();
    }
}

app.scriptPreferences.userInteractionLevel = currIL;

 

 

 

 

 

TOPICS
Bug, Scripting

Views

70

Likes

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

Script to auto answer "edits have been made" dialog when updating links.

New Here ,
Sep 18, 2020

Copy link to clipboard

Copied

Hey everyone,

 

The lack of a "Yes to All" button when updating all links to a file is debilitating for me. I literally have to press enter almost 3,000 times for over an hour to do an "update all" on a large .xls doc (sometimes several times per day) because there is no "Yes to All" or "Ignore this Warning" option for the below dialog...

 

"Edits have been made to the imported version of "document name.here". You will lose these edits (with the exception of changes applied to spreadsheets through cell styles or table styles) when you update the link. Update anyway?"

 

 

All of my changes are always applied via cell and table styles, so the message doesn't even apply to me. It is a pretty infuriating waste of time for an easy "Yes to All" button addition. Adobe support seems to be a black hole for extreme use case issues like these. Could I use a script to suppress or auto answer this dialog? Maybe a universal on / off script for all user notifications might work as well? Not sure where to start.

Adobe Community Professional
Correct answer by brianp311 | Adobe Community Professional

You could try this to update all links in a document with dialog interaction suppressed.

 

 

var currIL = app.scriptPreferences.userInteractionLevel;
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

var links = app.documents[0].links.everyItem().getElements();
for (var i = 0; i < links.length; i++) {
    if (links[i].status == LinkStatus.LINK_OUT_OF_DATE) {
        links[i].update();
    }
}

app.scriptPreferences.userInteractionLevel = currIL;

 

 

 

 

 

TOPICS
Bug, Scripting

Views

71

Likes

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
Sep 18, 2020 0
Adobe Community Professional ,
Sep 18, 2020

Copy link to clipboard

Copied

You could try this to update all links in a document with dialog interaction suppressed.

 

 

var currIL = app.scriptPreferences.userInteractionLevel;
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

var links = app.documents[0].links.everyItem().getElements();
for (var i = 0; i < links.length; i++) {
    if (links[i].status == LinkStatus.LINK_OUT_OF_DATE) {
        links[i].update();
    }
}

app.scriptPreferences.userInteractionLevel = currIL;

 

 

 

 

 

Likes

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
Reply
Loading...
Sep 18, 2020 0