Hi I am wanting to make my script do 1 of 2 things depending on the result of a dialog box. I cannot seem to register the users response. Here is the code: var myDialog = new Window('dialog', 'Confirm Changes'); myDialog.frameLocation = [600,400]; myDialog.size = [590, 250]; myImage = myDialog.add('image',[480,41,572,127],'/Macintosh HD/Applications/Adobe InDesign CS3/Scripts/Scripts Panel/Images/xxxx.png'); myPanel= myDialog.add('panel', [10,10,580,240], 'Select the action you wish to use'); //Adding Buttons myUseExistingTextButton = myPanel.add('button', [48,190,75,25], 'Use Existing Text',{name:'select'}); myUseNewButton = myPanel.add('button', [260,190,75,25], 'Use New text as shown',{name:'select'}); myCancelButton = myPanel.add('button', [480,190,75,25], 'Cancel',{name:'select'}); myExistingTextWindow = myDialog.add('edittext',[20,40,230,200],'Existing Text'); myNewTextWindow = myDialog.add("edittext",[250,40,460,200],"New Text"); myResult = myDialog.show(); if(myResult == true) { if (myResult == 0) { alert("Old was selected"); } if (myResult == 1) { alert("New was selected"); } } which gives the following result: All I want to do is use the selected button do do the next part of my script depending on the text selected. I will keep on looking, and di-secting other scripts, but any help here would be nice. Thanks as always Roy
... View more