G’day Scripters.
I don’t think what I’m about to ask about is possible, but I’ve first posted on MacScripters, and the Quark Applescript forum, with no answers, so I’m turning to you learned folk.
I’m at present placing two text boxes at the top of a Quark 11 document, and reducing the top margin to it’s minimum of zero inches. I then have to set the PPD of the Device section of the Print Dialog to my actual printer so the text boxes print within the adjusted margins.
However, in order to ensure I don’t overlap any possible text or images, I’d like to add 1 inch to the top of the document, and place the text boxes within that added inch. Trying to get the page height gives a figure such as 11” (eleven with an inch sign), which cannot be coerced to text or an integer.
Setting the page height to 12 sets it to 12 inches, but adds the extra at the bottom. Also however, the actual original page size could be any size at all.
Any advice as to whether this is possible, or advice that it’s impossible, please?
Regards
Santa
tell application "QuarkXPress" activate repeat until exists document frontmost delay 0.1 end repeat tell document frontmost set page height to 12 # Was 11". Adds to bottom of page set top margin to 0.0 end tell end tell
|