SD4 not returning Quark XPress 6.5 picture box count properly

I have a problem with a Quark script. I am updating a script that was used on a recent version of Quark XPress and now in 6.5 it fails at a strange point.

Here, SD4 returns the correct count of text boxes, but in the much larger script, it returns 0.0.


tell application "QuarkXPress"
	tell front document
		set roundedCount to (count of (every picture box whose box shape is rounded corner)) as real
	end tell
end tell

Any ideas are very appreciated.

Levon

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)

If it works there, but not when used in a larger script I would look to the larger script and/or a change in 6.5 as the causeā€¦