On Nov 28, 2006, at 2:45 PM, Nick Hearn wrote: 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
Just call the Opi setup before page setup… It works with Xpress 6.5
Luca
set savepath to path to desktop as text set savepath to savepath & "xxx.ps" as string
tell application "QuarkXPress Passport" tell document 1 ----------------------OPI before page setup set include TIFF of OPI setup 1 to false set include EPS of OPI setup 1 to false ----------------------
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}
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 savepath
delay 2 --close front document saving no
end tell |