🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #474

JS: CS4 print active document

#474
From: John_Kallios
Date: Sun, 22 Mar 2009 23:50
34 lines
1365 bytes
Hello

Scripting guide gives this line as an example to print the active document

app.activeDocument.print();

I also want to print using a print preset. The guide indicates this text:

To print a document using a printer preset, include the printer preset in the print command.

If my preset name is: Myoutput

How would I add the preset name? Would it be:

app.activeDocument.print(Myoutput);

or

app.activeDocument.print();
print = Myoutput

Trying to run this single line script is also giving me an error

app.activeDocument.print();

JavaScript error!
Error Number 8
Error String: "Syntax error"
Line: 1
Source "{\rtf1\mac\ansicpg1000\cocartf824
\cocoasubrtf410"
Offending Text: "\"

(Serious Newbie alert)
Technical Details
Message-ID: <59b860c2.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b00375fe3369de3e,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: John_Kallios@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: JS: CS4 print active document
Message-ID: <59b860c2.-1@webcrossing.la2eafNXanI>
Date: Sun, 22 Mar 2009 16:50:24 -0700
Lines: 37
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit