Object does not support the property or method 'userInteractionLevel'

Explorer ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Hi all,

I got the error "Object does not support the property or method 'userInteractionLevel'" using the below code functions in Indesign 2021

 

 
function Interaction_Level(_FLG)
{
    try{
    var user_int_level;
    if(_FLG == 0)
    {
        var user_int_level = app.userInteractionLevel.DONTDISPLAYALERTS;
    }
    else if(_FLG == 1)
    {
        user_int_level = app.userInteractionLevel.DONTDISPLAYALERTS;
    }
    }catch(e){alert(e)}
}

Could you please anyone suggest what the exact error is?

TOPICS
Scripting

Views

136

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
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , May 25, 2021 May 25, 2021
Try app.scriptPreferences.userInteractionLevel The possible values for this property are mentioned at the link below https://www.indesignjs.de/extendscriptAPI/indesign-latest/#UserInteractionLevels.html -Manan

Likes

Translate

Translate
Adobe Community Professional ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Try

app.scriptPreferences.userInteractionLevel

The possible values for this property are mentioned at the link below

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#UserInteractionLevels.html

-Manan

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
community guidelines
Adobe Community Professional ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

app.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

 

Best

Sunil

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
community guidelines
Adobe Community Professional ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

LATEST

This code will not run for InDesign Server.

 

Sunil

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
community guidelines