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?
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;
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:
Regards,
Uwe
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Moving to InDesign Scripting forum.