• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Object does not support the property or method 'userInteractionLevel'

Contributor ,
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

692

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

Community Expert , 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

Votes

Translate

Translate
Community Expert ,
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

Votes

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
Advocate ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

app.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

 

Best

Sunil

Votes

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
Advocate ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

LATEST

This code will not run for InDesign Server.

 

Sunil

Votes

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