Hi, if you still want to do it yourself. Let's do the first step. Here's a example for the userdialog. Release dates will livechange depending on selected publication. #target Indesign //e.g set some sample publications and release dates var publications = new Array (); var publication01 = new Object(); publication01 ["publication"] = "newspaper" ; publication01 ["releaseDates"] = ["ndate01", "ndate02", "ndate03"] ; publications.push(publication01); var publication02 = new Object(); publication02 ["publication"] = "magazine" ; publication02 ["releaseDates"] = ["mdate01", "mdate02", "mdate03"] ; publications.push(publication02); //alert the response alert('Chosen Product & release Date: ' + someDialog().join(', ')); //userdialog function someDialog() { var w = new Window ("dialog", "My Input"); w.alignChildren = "left"; var pnlpublication = w.add('panel', undefined, 'Please choose a publication:'); pnlpublication.orientation = "row"; var myPublication = pnlpublication.add ("dropdownlist", [0, 0, 250, 10], [publications[0].publication, publications[1].publication]); myPublication.selection = 0; var pnlDate = w.add('panel', undefined, 'Please choose a release Date:'); pnlDate.orientation = "row"; var myDate = pnlDate.add ("dropdownlist", [0, 0, 250, 10],publications[0].releaseDates); myDate.selection = 0; var myButtonGroup = w.add ("group"); myButtonGroup.orientation = "row"; myButtonGroup.add ("button", undefined, "OK"); myButtonGroup.add ("button", undefined, "Cancel"); myPublication.onChange = function() { myDate.removeAll(); var getSel = myPublication.selection.text; switch(getSel){ case publications[1].publication : setListItems (publications[1].releaseDates); break; default : setListItems (publications[0].releaseDates); break; } function setListItems (stringArray){ for(var myItem = 0; myItem < stringArray.length; myItem++){ myDate.add('item', stringArray[myItem]) } } myDate.selection = 0; } if (w.show () == 1){ return [myPublication.selection.text, myDate.selection.text]; w.close() }else{ w.close(); exit (); } }
... View more