Quark Xpress UI scripting

Is it possible to use UI scripting with Quark Xpress. I would like to set page numbers with a script. In the past (OS 9 & Xpress 4.11), I was able to use FaceSpan successfully but I do not have that option in OS X.

I can open the “Section…” window with UI scripting but I can do that much with menu items using the Quark dictionary. I can also change the “Section Start” but it doesn’t really act as if I had manually clicked the box. The “Page Numbering” section never activates like it should. I have also noticed that clicking the “Cancel” button does nothing. Is this a situation where Quark has not completely followed the Apple recommendations?

Perhaps, I just don’t know what I am doing with UI scripting (big possibility!). Here is the script I am trying. I removed the part where I try to set the page number because until that section is enabled I don’t think there is much point. Or is that assumption wrong?

tell application "QuarkXPress"
	activate
	tell application "System Events"
		tell process "QuarkXPress"
			click menu item "Section..." of menu "Page" of menu bar item "Page" of menu bar 1
			delay 1
			set sec_state to (value of checkbox "Section Start" of window "Section") as integer
			if sec_state is 0 then
				click checkbox "Section Start" of window "Section"
				delay 1
			end if
			click button "Cancel" of window "Section"
			
		end tell
	end tell
end tell