Hi there,
Thanks to both of you for the help with this one.
I’ve tried implementing the code in a few ways but when printing the hires pic info is still being included - going by the file size that is. If I print the file manually I get a file size of 512K however the script produces files of 170mb???
Here’s the section of code that does the printing:-
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
The code has the ‘OPI omit TIFF and EPS’ in it to try and achieve what I’m after, this appears in the ‘Options’ tab in the Print dialog. According to the dictionary I should be able to use this but it seems to be ignored??? (Probably more a case of me not using it correctly!) (Just read your suggestion again Matt – Yeah, I’d tried that and couldn’t understand why it wasn’t working yet it compiles ok???)
The script compiles ok and executes however I’m still getting the large file sizes.
Any further help be appreciated with this one please,
Thanks again in advance,
Nick
EDIT: I didn’t say with the original post, I’m using Quark 6.52.
EDIT2: Whilst searching for an answer to this I’ve found a posting in another forum outlining a similar problem. They wondered if it could be a bug with Quark applescript?