🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8466

Printing a file AS

#8466
From: KEVINP1
Date: Tue, 03 Oct 2006 22:59
22 lines
1617 bytes
Hi

Im having a few issues with printing a file, I am using the below in my script which works fine, if I remove - set active printer preset of print preferences to "GUMMER", but my image then prints hard top left (not acceptable), If I leave this line in I get an error:
Adobe InDesign CS2 got an error: Can't set active printer preset of print preferences to "GUMMER". (-10006)

Could I get some advice please as Im a little unsure of how to set up area (A) correctly, what do I need to do to set this area up so as my image prints in the centre of either a A3 or A4 sheet of paper?



tell application "Finder"
activate
set _Print to display dialog "Would you like to print this now?" buttons {"No", "Yes"} default button 2 with icon note
if button returned of _Print is "Yes" then
tell application "Adobe InDesign CS2"
set active printer preset of print preferences to "GUMMER" --(A)
print active document without print dialog
end tell
end if
end tell

Cheers
Kev
Technical Details
Message-ID: <3bc1dcde.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5a271c792d298fd9
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: KEVINP1@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Printing a file   AS
Message-ID: <3bc1dcde.-1@webcrossing.la2eafNXanI>
Date: Tue, 3 Oct 2006 15:59:48 -0700
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit