SD4 not returning Quark XPress font information properly

I am having trouble with Script Debugger returning font information properly.

In Script Editor, this script:


tell application "QuarkXPress"
	tell front document
		tell every text box
			tell every character
				set xFont to font
				set xStyle to style
				if style is not plain then
					display dialog "Not Plain."
				end if
				if style is plain then
					display dialog "Plain."
				end if
			end tell
		end tell
	end tell
end tell
return xStyle

Returns this result:

But in SD4, it returns this result:

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)

I am also seeing strange things, like constants being displayed as variables. ‘boxes’ in the following script displays as a variable, and will not run because the variable is not defined!


tell application "QuarkXPress"
    get count of text boxes
end tell

Also, some constants change occasionally in my scripts. When addressing the pseudo-styles in Quark XPress, the ‘on style’ of ‘superior’ is displayed as ‘«constant styltspr»’ in my script now. I did not change this, but there are others that have changed lately, since the latest upgrade to SD4. ‘text box’ is now displayed in my scripts as ‘«class TXTB»’ lately.

Any thoughts?

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)