Quark - modify the master spread or screen?
Quark - modify the master spread or screen?
- Subject: Quark - modify the master spread or screen?
- From: "email@hidden" <email@hidden>
- Date: Tue, 13 Mar 2001 00:13:01 -0500
Thanks to hans help I am able to break up a quark document into
individual pages. BUT (well there had to be a but or I would not have
emailed ;-( ) I am having some problems with master pages - and
spreads, as the subject denotes.
The specific problem is that I want to have the pages be right and left
pages and have them be numbered correctly. I can get the numbering BUT
the folios normally show up on the right side (where the even pages
should be on the left). This is one of several dozen variations that I
have tried. It has a master document which has a style sheet on it and
then two "masters" to copy to. An Odd and even page. The script runs
but fails on the copy because it uses the master spread from the
original. (it does not actually fail, it just imposes the wrong or Null
master spread) The 2nd master is there, but while I can easily manipulate
it manually, I cannot get the syntax (or more likely the object I am
really supposed to manipulate.)
I have tried the master page, page 1 of the master page, the document 1,
the page itself...etc. So far I can fail to compile or freeze quark if I
do. This says 4.11 but I have tried with 4.1 and 4.11 and OS 9.04 and
9.1 to no avail. Any suggestions or hints greatly appreciated.
Doug
The basic script is
-- Encoded with AppleScript Endec 1.0.3
tell application "QuarkXPress`AA 4.11"
tell document 1
set nPage to count of pages
end tell
if nPage = 0 then -- no open document
beep
display dialog "Need to have the document to be split up open in
Quark!"
return
end if
if (exists document 2) then -- too many open docs!
beep
display dialog "You have too many Documents Open! Open in Quark,
only the document to be split up!"
return
end if
repeat with i from 1 to nPage
if (i mod 2 = 0) then
open alias "Server5W:Desktop Folder:JAN:Pages:Jan Masters:JAN Even"
show document 2
else
open alias "Server5W:Desktop Folder:JAN:Pages:Jan Masters:JAN Odd"
show document 2
end if
-- JAN has just the number on every page.
copy page i of document 1 to page 1 of document 2
try
set thislist to {(object reference of every text style range of
every text box of document 2 whose contents contains "Page 1")}
set thistext to contents of (item 1 of thislist)
set thistext to i as text
set contents of (item 1 of thislist) to thistext
end try
if i < 10 then
save document 2 in "Server5W:Desktop Folder:JAN:Pages:JAN_B0" & i
else
save document 2 in "Server5W:Desktop Folder:JAN:Pages:JAN_B" & i
end if
close document 2
end repeat
end tell