🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20299

Re: creating a printer style on the fly through vbscript

#20299
From: Peter Boctor
Date: Wed, 17 Jul 2002 23:06
16 lines
1423 bytes
Joseph, 

InDesign 2 exposes printer styles and all of the properties on them, so yes you should be able to do that. 

The creation of a printer style goes something like this: 
 
Set ID = CreateObject("InDesign.Application") 
Set myStyle = ID.PrinterStyles.Add 
myStyle.Name = "Envelope" 
 

Next you'll have to set the properties of the new printer style you've just created. 

If you want to just copy what the current settings are into the new printer style, then you can walk through each of the properties in the Document's PrintPreference object, get its value and set it in the printer style. 

-peter
Technical Details
Message-ID: <ef9af49.0@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef9af49.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,6139a2100c54cbd8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-17 16:11:22 PST
From: "Peter Boctor" <peter.boctor@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: creating a printer style on the fly through vbscript
Message-ID: <ef9af49.0@WebX.aaQKaf7vad4>
Date: Wed, 17 Jul 2002 16:06:49 -0700
References: <ef9af49.-1@WebX.aaQKaf7vad4>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit