I am trying to make the Paper size of my Quark document 1 inch bigger then my page size. This is to accommodate the registration marks and bleed. I keep getting an error saying "Can’t make “8.5"” into a number. How do I convert page size into a number I can use. Here is the script I so far.
tell application “QuarkXPress”
tell document 1
set horizontal measure to inches
set x to page width
end tell
tell print setup of document 1
set separation to false
set print spreads to false
set printer type to “Prinergy Refiner”
set page position to center position
set reduce or enlarge to “100%”
set tiling to off
set bleed to “.5”
set paper size to “Custom”
set paper width to (x + 1)
set paper height to automatic
end tell
tell layout space 1 of project 1
set trapping method to “Knockout All”
end tell
end tell
tell application “QuarkXPress”
tell document 1
set pagewidth to page width as real
end tell
tell print setup of document 1
set separation to false
set print spreads to false
set printer type to “Generic Color”
set page position to center position
set reduce or enlarge to “100%”
set tiling to off
set bleed to “.5”
set paper size to “Custom”
set registration marks to centered
set registration marks offset to “10”
set paper width to (pagewidth + 1)
end tell
tell layout space 1 of project 1
set trapping method to “Knockout All”
end tell
It is working but not perfect. I have checked it but when I have created PDF but it is not getting the page width.
Few lines gives errors, I am using QuarkXpress 6.5
tell document 1
set pagewidth to page width as integer
set pageheight to page height as integer
tell print setup
set separation to false
set print spreads to false
set printer type to "Generic B&W"
set page position to center position
set reduce or enlarge to "100%"
set tiling to off
set bleed to ".5"
set paper size to "Custom"
set registration marks to centered
set registration marks offset to "10"
set page width to pagewidth
set page height to pageheight
set paper width to (pagewidth + 1)
end tell
tell application "QuarkXPress"
activate
tell document 1
set PageHeight to height of bounds of current page as real
set PageWidth to width of bounds of current page as real
end tell
tell print setup
set separation to false
set print spreads to false
set printer type to "Generic B&W"
set page position to center position
set reduce or enlarge to "100%"
set tiling to off
set bleed to ".5"
set paper size to "Custom"
set registration marks to centered
set registration marks offset to "10"
set page width to pagewidth
set page height to pageheight
set paper width to (pagewidth + 1)
end tell
end tell
I am using the below code, but I am getting an error, can any one look into it.
tell application "QuarkXPress"
activate
tell document 1
set pagewidth to page width as integer
set pageheight to page height as integer
tell print setup
set separation to false
set print spreads to false
set printer type to "Generic B&W"
set page position to center position
set reduce or enlarge to "100%"
set tiling to off
set bleed to ".5"
set paper size to "Custom"
set registration marks to centered
set registration marks offset to "10"
set page width to pagewidth
set page height to pageheight
-- set paper width to (pagewidth + 1)
end tell
print PostScript file PS_Path without dialog reply
delay 15
close saving no
end tell
end tell
Also not able to set paper width to (pagewidth+1).
While printing to postscript some dialog box get popup if the fonts are damaged. I don’t want any dialog box while print to postscript. Is it possible to control I want the PS file either fonts are missing or damaged.
disable or remove XT’s “FontDownloadingXT.xnt” & “FontRetrieveXT.xnt” and download yourself and add “FontAlertSilencer.xnt” free from Quark should solve the problems.
btw there is no “page width” & “page height” within print setup only “paper width” & “paper height” and neither of these are accessible with your choice of PPD check in the GUI change your printer type “Generic B&W” to an Adobe PPD if you have one installed?