Hi Luca,
Thanks for your posting regarding the
Quark print settings in Applescript.
I've tried your suggestion but I
still get the same problem, when I create a ps file manually the size is 532k,
when I create one with the applescript the file size is 170mb?
Any other ideas would be appreciated.
According to the Quark library I should be able to use 'OPI omit TIFF and
EPS' in the PRINT line of the script.
- print -- Print the specified
object(s)
- reference -- objects to print
- [copies
small integer]
-- the number of copies to print
- [cover page
no / first
page / last page] -- use a cover page
- [OPI
omit TIFF /
omit TIFF and EPS / include images] -- OPI
options
- [paper source
paper
cassette / manual feed] -- paper tray
- [plates
list]
-- list of plates to print
- [PostScript file
alias]
-- file to print PostScript to
- [print dialog
boolean]
-- Show the print dialog? (default is no)
Here's
the code that does the printing, please excuse the commented stuff, it
highlights the options I've tried.
tell document 1
set vertical
measure to
millimeters
set horizontal
measure to
millimeters
set MyDocWidth
to
width of
bounds of
current page as
real
set MyDocHeight
to
height of
bounds of
current page as
real
set properties
of
print setup to
{printer type:"Prinergy Refiner", paper size:"custom", paper width:MyDocWidth + 50, paper height:MyDocHeight
+ 50, bleed:25 as
millimeter units, orientation:portrait, page position:center position, print colors:composite
CMYK, resolution:2400, halftone screen:175, print spreads:false, reduce or
enlarge:"100%", registration marks:centered, include blank
pages:true, paper offset:0 as point units, page gap:0 as
millimeter units, separation:false, print thumbnails:false, back to
front:false,
page sequence:all pages, registration marks offset:12 as point
units, data format:binary data}
(*
set include TIFF of OPI setup 1 to false
set include EPS of OPI setup 1 to false
*)
--set properties
of OPI setup to {omit TIFF and EPS}
(*
tell OPI setup 1
set include TIFF to false
set include EPS to false
end tell
*)
end tell
-- Print the PostScript
set theOriginalName to
name of
front
document
set AppleScript's
text item delimiters to "."
set theName to
text item 1 of
theOriginalName
set thePSfile to
(ps_folder & theName & ".ps") as string
print front document
PostScript file thePSfile copies 1 OPI omit TIFF and EPS
without print dialog
delay 2
close front document
saving no
This is
just a section of the script which compiles ok, however the 'OPI omit
TIFF and EPS' seems to be ignored.
I'm
using Quark 6.52.
If
anyone else has any ideas on why this could be failing I'd be grateful
for their input.
Thanks
in advance,
Nick
Multimedia Developer
communisis
Print Management Services
Manston Lane, Cross Gates, LS15 8AH
t: 0113 225 5253
f: 0113 225 2525
e: email@hidden
The leading print partner at:
www.communisis.com
-----Original
Message-----
From: applescript-users-bounces+nick.hearn=email@hidden
[mailto:applescript-users-bounces+nick.hearn=email@hidden] On Behalf Of Luca Pozzato
Sent: 27 November 2006 18:10
To:
email@hidden
Subject: Re: Quark print query,
help required, please...
this should answer your
question...
set savepath
to
path to desktop as text
set savepath
to
savepath &
"somename.ps" as string
tell application
"QuarkXPress Passport"
set
include TIFF of OPI setup 1 to false
set
include EPS of OPI setup 1 to false
print (every page) PostScript file savepath
On Nov 27, 2006, at 6:17
PM, Nick Hearn wrote:
***Before acting on this
email or opening any attachment you are advised to read the disclaimer at the
end of this email***
************************************
I've written a script
that batch prints a selection of Quark docs.
The script works fine
apart from one small niggle, that being with the OPI settings.
According to the
dictionary I should be able to set what I want to happen OPI wise.
[quote]print -- Print the
specified object(s)
reference
-- objects to print
[copies
small integer] -- the number of copies to print
[cover
page no / first page / last page] -- use a cover page
[OPI
omit TIFF / omit TIFF and EPS / include images] -- OPI options
[paper
source paper cassette / manual feed] -- paper tray
[plates
list] -- list of plates to print
[PostScript
file alias] -- file to print PostScript to
[print
dialog boolean] -- Show the print dialog? (default is no)[/quote]
I've tried this a number
of ways but I get an error saying that the command isn't recognised. I'm trying
to set the OPI to 'omit TIFF and EPS'.
Please can someone point
me in the right direction.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________