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?
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
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
Copy link to clipboard
Copied
app.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
Best
Sunil
Copy link to clipboard
Copied
This code will not run for InDesign Server.
Sunil