Page rule origin in Xpress 4.11
Page rule origin in Xpress 4.11
- Subject: Page rule origin in Xpress 4.11
- From: email@hidden (Michael Sullivan)
- Date: Thu, 24 Jan 2002 14:12:02 -0500
- Organization: Business Card Express
I'm writing a script to build documents in Xpress 4.11
I've noticed that setting the page rule origin doesn't work as i expect
it to.
I've tried setting it of the document, and of the master document, and
of the various pages involved -- when I set it for the document or the
master document, it seems to take in the sense that the document is
displayed with the origin in the appropriate place relative to the top
left of the page.
But in the script, I'm finding that specifications of position,
sometimes follow from the origin, and sometimes from the top left of the
page, no matter what the origin.
I seems that if I work on an existing document where I have manually set
the origin, that everything works as I expect, measuring from the
origin.
But if I set the origin in a script after making a new document, then
many things don't seem to use that as a measurement basis. At first I
was having guides ignore the page rule origin, but rules or boxes would
follow it.
Then at some point after many changes (I've lost some of the
intermediate steps alas due to crashing and corruption), I was finding
that it went the other way -- guides followed the page rule origin and
rules and boxes did not.
I finally settled on a workable workaround which is to do everything via
the top left of page/spread and not set the page rule origin until the
last bit of the script.
But it would be a lot simpler to code if I could set it at the beginning
and have everything relate to that...
I'm also worried that if I've set the page rule origin via a script,
that some future applescripts might not work right...
Has anyone else encountered this or know what I'm talking about?
I've also noticed that I can't get Xpress to make documents with
automatic text box: false. I have to specifically delete the text box
from the master document if I want a master page that doesn't contain
one...
Here is the script portion I'm using:
---
tell application "QuarkXpress 4.11"
make new document at beginning with properties {page width:pw, page
height:ph, top margin:tm, bottom margin:bm, left margin:lm, right
margin:rm, baseline grid start:tm, baseline grid increment:baseInc,
baseline grid showing:true, automatic text box:false, spread rule
origin:({tm, lm} as points point)}
tell master document 1
make new spread at end with properties {name:"B-Grid"}
end tell
end tell
---
And B-Grid master page contains a text box covering the margin area with
automatic linkage.
Oddly enough, the standard A-Master A page doesn't take the margins I
set (but uses those of the default document), but page 1 *does*, and so
does the page I create: "B-Grid". I have to go in later and change the
margins for A-Master A, or set those margins for the default document
before I create the new document.
Anyway, this is just a little run through of the current bugaboos,
wondering if I am doing something wrong, or if this is just more Quark
quirks.
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden