Re: New Quark Pages
Re: New Quark Pages
- Subject: Re: New Quark Pages
- From: "Mark Martin" <email@hidden>
- Date: Mon, 16 Jul 2001 17:24:08 -0400
Here is the standard page insertion we use:
tell application "QuarkXPress"
set x to a reference to spread "A-MASTER A" of master document 1
set y to a reference to spread "B-MASTER B" of master document 1
set z to a reference to spread "C-MASTER C" of master document 1
set xx to a reference to spread "AA-MASTER BK" of master document 1
set yy to a reference to spread "BB-MASTER BK" of master document 1
set cFront to f_format
set cBack to b_format
tell document 1
make new spread at end
make new page at end
tell spread -1
if cFront = "A" then
set master spread of page 1 to x
else if cFront = "B" then
set master spread of page 1 to y
else
set master spread of page 1 to z
end if
if cFront = "AA" then
set master spread of page 2 to xx
else
set master spread of page 2 to yy
end if
end tell
if (cPage mod NumSpreads) = 1 then
delete spread 1
end if
end tell
end tell
In our environment it was safer to always make a new spread and then delete the first one if creating the first spread. The setting of the master spread does all the master page magic.
Mark Martin
The John Henry Company
Lansing, MI
USA