🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by hm24_arul Thu, 19 Feb 2009 05:06
Dialog box it's not showing
#1182
Author: 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
Re: Dialog box it's not showing
#1195
Author: Dave_Saunders
Date: Thu, 19 Feb 2009 13:01
10 lines
776 bytes
Sounds like you need:

      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;




immediately befor the show() call.

Dave
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads