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

Is it possible to stop a script at a Photoshop built in Dialog "box"?

Contributor ,
Nov 16, 2015 Nov 16, 2015

Copy link to clipboard

Copied

Hi Commmunity!!

When you run/build any script.

With script listener im able to record a result of a dialog box setting.

But is it possible, for example to stop the script at a dialog?!? (Like when you check the mark at photoshop action "toggle dialog")

About Dialog im mean this. Photoshop bulit in dialogs. Levels, Saturation etc.:

2015-11-16_193453.jpg

I know it is possible build own dialog boxes, but this one is more easier. When it is possible. (If you can do it with actions, maybe you can with script)?!?!

So once again: the goal is to run a script... at certain point of the script stops and the dialog comes in, after you hit ok the script continues! 

Possible?
🙂
Thanks for any opinion, and/ or help!
Ben

TOPICS
Actions and scripting

Views

976

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

correct answers 1 Correct answer

Advocate , Nov 16, 2015 Nov 16, 2015

    var desc9 = new ActionDescriptor(); 

    desc9.putBoolean( charIDToTypeID('Clrz'), false ); 

        var list2 = new ActionList(); 

            var desc10 = new ActionDescriptor(); 

            desc10.putInteger( charIDToTypeID('H   '), 0 ); 

            desc10.putInteger( charIDToTypeID('Strt'), 0  ); 

            desc10.putInteger( charIDToTypeID('Lght'), 0 ); 

        list2.putObject( charIDToTypeID('Hst2'), desc10 ); 

    desc9.putList( charIDToTypeID('Adjs'), list2 ); 

    exe

...

Votes

Translate

Translate
Adobe
Advocate ,
Nov 16, 2015 Nov 16, 2015

Copy link to clipboard

Copied

    var desc9 = new ActionDescriptor(); 

    desc9.putBoolean( charIDToTypeID('Clrz'), false ); 

        var list2 = new ActionList(); 

            var desc10 = new ActionDescriptor(); 

            desc10.putInteger( charIDToTypeID('H   '), 0 ); 

            desc10.putInteger( charIDToTypeID('Strt'), 0  ); 

            desc10.putInteger( charIDToTypeID('Lght'), 0 ); 

        list2.putObject( charIDToTypeID('Hst2'), desc10 ); 

    desc9.putList( charIDToTypeID('Adjs'), list2 ); 

    executeAction( charIDToTypeID('HStr'), desc9, DialogModes.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
Contributor ,
Nov 16, 2015 Nov 16, 2015

Copy link to clipboard

Copied

pffffff :-DDDD
what a relief!

ztggizgiz  You are my personal Jesus Chirst right know!!

very nice!
Thank You!

Ben

ps: i tried DialogModes.YES  ... and Dialodmodes.TRUE  but i did not think to set it to 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 ,
Nov 17, 2015 Nov 17, 2015

Copy link to clipboard

Copied

Just be sure to turn it off afterwards, or EVERYTHING will come up with dialogs!

app.displayDialogs = DialogModes.NO;

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
Contributor ,
Nov 20, 2015 Nov 20, 2015

Copy link to clipboard

Copied

LATEST

so helpfull Chuck! Thanks!

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