Arrg! InDesign rectangle stroke won't set to 0 ?

I hope someone has some insight on this, because its driving me insane.

I can’t seem to get a script create an InDesign rectangle with NO stroke.
For example, this script ends up adding a 1pt stroke every time, despite my instructions.
However, if I then go in to the document and manually delete the stroke value, it’ll finally go away.
What the-? :expressionless:


tell application "Adobe InDesign CS2"
	tell document 1
		tell page 1
			make rectangle with properties {geometric bounds:{0.75, 0.75, 2.125, 3.625}, stroke weight:0}
		end tell
	end tell
end tell


Model: MacBook Pro 15"
Browser: Firefox 1.5.0.4
Operating System: Mac OS X (10.4)

With the help of the AS user’s list, I found the answer.

My problem was that any stroke color will cause the border to be used.
One must define the stroke color as the “None” swatch.
That is, NOT:

stroke color:none

but…


set noneSwatch to item 1 of (every swatch whose name is "None")

     later...        stroke color:noneSwatch