Код:
with (myDialog = new Window ('dialog', 'Print', undefined)) {
eText2 = add('edittext')
eText2.size = [207, 21]
eText2.active = true
with (gGroup10 = add ('group')){
size = [400, 29]
btButton1 = add('button', undefined, 'Standart Print &Window', {alignment:['left', 'center']})
btButton1.onClick = function () {close(0)}
btButton2 = add('button', undefined, 'Print', {name: "ok"})
btButton2.alignment = ['right', 'center']
btButton3 = add('button', undefined, 'Cancel', {name: "cancel"})
}
}
myDialog.show();
P.S. Условия запуска: из панели скриптов Indesign CC, Windows 7 и 8