🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.incopy.scripting
Article #74

Can I print a hidden document

#74
From: doug_norton
Date: Mon, 30 Mar 2009 21:44
10 lines
926 bytes
I want to create a document with showingWindow = false and print it.

var myDocument = app.documents.add(false);
var myStory = myDocument.stories.item(0);

myStory.contents = "Hello World!";
myDocument.print(true);
myDocument.close(SaveOptions.NO);

The print dialog comes up but then InCopy crashes.
Technical Details
Message-ID: <59b87486.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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: 1efe4a,f02fd10a3ced96ad,start
X-Google-Attributes: gid1efe4a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: doug_norton@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.incopy.scripting
Subject: Can I print a hidden document
Message-ID: <59b87486.-1@webcrossing.la2eafNXanI>
Date: Mon, 30 Mar 2009 14:44:13 -0700
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit