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

adding dialogs to window...

Explorer ,
Jun 25, 2009 Jun 25, 2009

Hi everyone,

I am creating such scripts based on adding dialogs(app.dialogs.add()) to get user inputs for the scripts. I want add these existing dialog to new window. Also I want to add image or icons to this script's dialogs. Because i need to be present this scripts as tools. I know its possible to add image in 'Window' and it have lot of features in it. Can anyone help me to add image, dialogs all to new Window.

Thanks

Thiyagu

TOPICS
Scripting
1.2K
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
Guest
Jun 26, 2009 Jun 26, 2009

Hi,

Requirement is not clear:

Header 1Header 2
I want add these existing dialog to new window.What you want to add in the dialog.
Also I want to add image or icons to this script's dialogsHow you want to add image or icon, like background or as caution.
Can anyone help me to add image, dialogs all to new WindowWhat do you expect from us, not clear like what item you want to add in dialog.

Thanks

Rajeev

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
Explorer ,
Jun 28, 2009 Jun 28, 2009

Hi Rajeev,

Thaks for your reply. I will explain you clearly. Below is the sample coding for creating dialog to get the scaling values from the user. How can i add image or icon to this dialog? i.e. below the text field of the dialog like background image. If it is not possible to add image or icon to this dialogs means how can i achieve this through Window concept in CS3 ESTK? This how i want to do. Becuase while running the script it has to be give the appearance of window based tool with our company logo. Can you please look into this and help me out.

//=============

var myLabelWidth = 130;

var myDialog = app.dialogs.add({name: "INDESIGN IMAGE SCALING"})

with(myDialog.dialogColumns.add()){

            with(borderPanels.add()){

                        with(dialogColumns.add()){

                                    with(dialogRows.add()){

                                                staticTexts.add({staticLabel:"Horizontal Scale:", minWidth:myLabelWidth});
                                               
myHScaleFiled = integerEditboxes.add({editValue:0});

                                    }

                                    with(dialogRows.add()){

                                                staticTexts.add({staticLabel:"Vertical Scale:", minWidth:myLabelWidth});

                                                myVScaleFiled = integerEditboxes.add({editValue:0});

                                    }

                        }

            }

}

myResult = myDialog.show();

//===============

Thanks in advance

Thiyagu

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 ,
Jun 28, 2009 Jun 28, 2009

Adding images and icons is not possible with the native dialog object -- for this, you need to cross over to ScriptUI.

Fortunately, it's well documented; http://www.adobe.com/products/indesign/scripting/ (select Scripting Resources) lists the various guides, and the one you probably need is the CS3 in-depth scripting guide, as it covers the basics of ScriptUI. The JavaScript Tools Guide contains a comprehensive overview.

You can take a look at Dave Saunders' WrapNudger (http://www.pdsassoc.com/index.php?Nav=solnssub&Ban=WrapNudger&Info=PDSproducts/WrapNudger/index.php) for a good example of what's possible with images. Another possibility is using RapidScriptUI to create the dialog -- see http://forums.adobe.com/thread/288130 for the announcement.

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
Explorer ,
Jun 29, 2009 Jun 29, 2009

Hi Jongware,

Thanks for your guidelines. Sorry, I have tried but i unable to add our own image to my dialog. Because i don't have much knowledge about scriptUI. Can you please help me out for this.

Thanks & Regards

Thiyagu

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 ,
Jun 30, 2009 Jun 30, 2009
LATEST

The correct guide was a bit difficult to find, as the direct link I mentioned appears to be dead. (Remember CS3 is being fazed out!) Fortunately, Google found the CS3 Tools guide is still available as http://www.adobe.com/devnet/bridge/pdfs/javascript_tools_guide_cs3.pdf

The sample scripts described in this guide should get you started. Using icons, for instance, is described on p. 68.

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