trying to print doc to PS file
this works on my laptop (macbook pro intel OSX 10.4.8 ) using quark 6.52
does not work on desktop (Dual Core G5 OSX 10.4.6) using quark 6.5
set workpath to ("" & (path to current user folder) & "Desktop:")
tell application "QuarkXPress"
activate
set filepath to (workpath & name of document 1 & ".ps")
tell document 1
set PageWidth to "11.5"
set PageHeight to "9"
if PageWidth is greater than PageHeight then
set PageOrientation to landscapte
else
set PageOrientation to portrait
end if
set properties of print setup to {printer type:"HP Color Laserjet 8550", tiling:off, back to front:false, bleed:0, collate:false, data format:binary data, fit in area:false, flip horizontal:false, flip vertical:false, halftone screen:"100", include blank pages:false, orientation:PageOrientation, page position:center position, page sequence:all pages, paper size:"Custom", paper width:PageWidth, paper height:PageHeight, print colors:composite CMYK, print quality:normal, print spreads:false, print thumbnails:false, reduce or enlarge:"100%", resolution:300, separation:false}
print PostScript file filepath
end tell
end tell
also having trouble on LT trying to do this
set PageWidth to width of bounds of current page as real
set PageHeight to height of bounds of current page as real