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

Suppress dialog boxes in all scripts

Engaged ,
Sep 30, 2019 Sep 30, 2019

Not sure if this is a Mac thing, but I've noticed that I've add to add 

 

displayDialogs = DialogModes.NO; // OFF

 

To most of my scripts (Photoshop CC) in order to supress any dialog boxes that wouldn't normally pop up on my PC (Photoshop CC). 

 

Is there a global switch to supress dialogue bboxes popping up a (and stopping ) scripts from processing?

Please don't say delete preferences 🙂

  

TOPICS
Actions and scripting
1.6K
Translate
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
Adobe
Community Expert ,
Sep 30, 2019 Sep 30, 2019

No, I don't think there is a global switch. You have to add that to each of your scripts.

Translate
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
Engaged ,
Oct 01, 2019 Oct 01, 2019
That doesn't explain why a script works fine one day and then doesn't run properly the next as it stops at every dialog box along the way. Could it be the difference from running on a PC then changing to a Mac?
Translate
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 ,
Oct 01, 2019 Oct 01, 2019

If you used the code:

 

displayDialogs = DialogMode.ALL

 

Then you have to use:

 

displayDialogs = DialogMode.NO

 

To turn it off. You might have a script that you're running that turns everything on.

 

 

Translate
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
People's Champ ,
Oct 03, 2019 Oct 03, 2019
LATEST

Have you heard about startup scripts?

Translate
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