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

to run a script when opening a dialog box?

Contributor ,
Feb 24, 2018 Feb 24, 2018

I intend to improvise here a kind of window that shows only a message "PROCESSING .... WAIT!" when executing a task through a script. The window has to be of the "Dialog" type and not "Palette" I hate palettes.

It will work this way:

First open the window and then automatically run the main event without closing the window ..... after completing the whole process would execute this line: Dlg.close ();

I do not know if this is crazy of me, but I believe there is some specialist who can show me some possibility.

TOPICS
Actions and scripting
1.3K
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

correct answers 1 Correct answer

People's Champ , Feb 24, 2018 Feb 24, 2018

Type "window" is not suitable instead of "palette"?

var d = new Window("window", "", undefined, {maximizeButton:false, minimizeButton:false, closeButton:true} );

d.add("statictext", undefined, "PROCESSING .... WAIT!");

d.show()

//some comde

//for (var i = 0; i < 100; i++)  activeDocument.activeLayer = activeDocument.layers

d.close()

Translate
Adobe
People's Champ ,
Feb 24, 2018 Feb 24, 2018

Type "window" is not suitable instead of "palette"?

var d = new Window("window", "", undefined, {maximizeButton:false, minimizeButton:false, closeButton:true} );

d.add("statictext", undefined, "PROCESSING .... WAIT!");

d.show()

//some comde

//for (var i = 0; i < 100; i++)  activeDocument.activeLayer = activeDocument.layers

d.close()

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
Contributor ,
Feb 25, 2018 Feb 25, 2018

Sorry for the delay!

This really worked very well! Great idea r-bin

Thank you!

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 ,
Feb 25, 2018 Feb 25, 2018

Just in CC2018 (on win7 at least) does not work very well. The control flags of the window buttons are ignored. (

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
Contributor ,
Feb 25, 2018 Feb 25, 2018
LATEST

r-bin  escreveu

Just in CC2018 (on win7 at least) does not work very well. The control flags of the window buttons are ignored. (

Screenshot_1.jpg

The button control flags for the window you are referring to, I believe, are those within the red rectangle.

The important thing is the window opens and faccha at the correct time, and this is working very well thanks to your tip. Thank you

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