Applesccript, Xpress 6 & master pages

Hi, I’ve been trying to get applescript to insert a new page in a Quark 6 document and assign a master page to the newly created page. But I cannot seem to figure out how to do this. Would some one be kind enough to help me out?

I have a document with two master pages: Master1 & Master2. I’d like to be able to insert (make) a new page after a particular page and make it a "Master2.

Here’s what I have thus far:

tell application “QuarkXPress”
tell document 1
make new page at after page 1 with ???
end tell
end tell

In place of the “???” I’ve tried various way of saying basically "…with master page “Master2.” But everything I’ve tried simply errors.

Any help would be appreciated. Thanks…

This is what works for me… Took me hours to figure it out.

My master page is called “B-Back”

tell application "QuarkXPress"
    make new page at end
    set properties of page 2 to {master spread:"Back"}
end tell

Thank you for the help… The code worked with just a slight modification. Applescript complained until I added the “of document 1.”

Here’s what I ended up with…

tell application “QuarkXPress”
make new page at after page 1 of document 1
set properties of page 2 of document 1 to {master spread:“myMasterTest”}
end tell

(My master page was “B-myMasterTest”)

Thanks again. I would have never guessed that I needed to drop the “B-” when trying to set the properties…