🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1182

Dialog box it's not showing

#1182
From: hm24_arul
Date: Thu, 19 Feb 2009 05:06
26 lines
1390 bytes
Hi scripters

Here I am trying to list all the printer presets in the application. Below is my code, but I am not getting any response!

var myPDFExportPreset = app.printerPresets.item(0);
var myPresetIndex = myPDFExportPreset.index;
pdfPresetDialog = app.dialogs.add({name:"Print File"});
with (pdfPresetDialog.dialogColumns.add()) {
  with (dialogRows.add()) {
    with (dialogColumns.add()) {
dialogRows.add().staticTexts.add({staticLabel: "Presets"});
	 with (dialogRows.add()) {
        pdfDD = dropdowns.add();
		pdfDD.minWidth = 250
        sl = new Array();
        for (i=0; i < app.printerPresets.length; i++) sl.push(app.printerPresets[i].name); pdfDD.stringList = sl; pdfDD.selectedIndex = myPresetIndex; } } }}

pdfPresetDialog.show();

can anyone tell me where I am mistaken

thanks in advance

regards
a r u l
vpublish.net
Technical Details
Message-ID: <59b7fb1a.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d29a45c481d66d7d,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: hm24_arul@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Dialog box it's not showing
Message-ID: <59b7fb1a.-1@webcrossing.la2eafNXanI>
Date: Wed, 18 Feb 2009 21:06:43 -0800
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit