Any eagle ULP experts out there?

I’m trying to change the “display” member of an attribute through an ULP. I can’t seem to get it to work. It seems to get a syntax error wherever I put “.display”…

This works to read a part attribute.

P.attribute[“PART_PKG”]

But this gets a syntax error:

P.attribute[“PART_PKG”].display

I’ve tried just about every way to refer to it, and it always gets a syntax error on the line that has “display”

Any ideas? Thanks.