Skip to main content
Participant
April 12, 2017
Question

Blocking "You should only run scripts from a trusted source" popup?

  • April 12, 2017
  • 2 replies
  • 957 views

I'm running a batch file that opens up InDesign and runs a script. I'd like to make this a one-click process, however, whenever i try and run the batch file, InDesign alerts me with the popup:

"You are about to run a script in Adobe InDesign CC 2017. You

should only run scripts from a trusted source.

Do you want to run the script?"

Is there any way to bypass this popup and simply run the script?

This topic has been closed for replies.

2 replies

Community Expert
April 13, 2017

Hi James,

should a moderator of this forum move this thread to:

InDesign Scripting

?

Regards,
Uwe

Steve Werner
Community Expert
Community Expert
April 13, 2017

Moving to InDesign Scripting forum.

winterm
Legend
April 12, 2017

You didn't mention your OS.

In Windows case, User Account Control (UAC) is a real expert in being really annoying.

Might it be a culprit? I'm always keeping UAC completely off and never encounter such a popup.

And admin rights for ID user should go without saying...

If this is not the case, and assuming your script is jsx, maybe adding these two lines to disable/enable warnings might help:

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

and

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;

Community Expert
April 13, 2017

Hi winterm,

FWIW: This question seems to be related to this thread in the Adobe InDesign Scripting Forum:

Way to open InDesign and run a specified .jsx script from an external .js script?

Hi James,

it would be better to post script related questions in this subforum:

InDesign Scripting

Regards,
Uwe