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

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

New Here ,
Apr 12, 2017 Apr 12, 2017

Copy link to clipboard

Copied

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?

TOPICS
Scripting

Views

720

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
Mentor ,
Apr 12, 2017 Apr 12, 2017

Copy link to clipboard

Copied

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;

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
Community Expert ,
Apr 13, 2017 Apr 13, 2017

Copy link to clipboard

Copied

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

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
New Here ,
Apr 13, 2017 Apr 13, 2017

Copy link to clipboard

Copied

LATEST

Yes sorry- I'm running on Windows 7. I made sure to completely disable my UAC, but I still receive the popup. I'm inclined to believe InDesign is providing the popup, not Windows maybe?

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
Community Expert ,
Apr 13, 2017 Apr 13, 2017

Copy link to clipboard

Copied

Hi James,

should a moderator of this forum move this thread to:

InDesign Scripting

?

Regards,
Uwe

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
Community Expert ,
Apr 13, 2017 Apr 13, 2017

Copy link to clipboard

Copied

Moving to InDesign Scripting forum.

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