adding dialogs to window...
Copy link to clipboard
Copied
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

Copy link to clipboard
Copied
Hi,
Requirement is not clear:
Header 1 | Header 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 dialogs | How you want to add image or icon, like background or as caution. |
Can anyone help me to add image, dialogs all to new Window | What do you expect from us, not clear like what item you want to add in dialog. |
Thanks
Rajeev
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.

