Scripting: get color doesn't return the values of set color

Simple AppleScript:

tell application id "DNtp"
	set rec to get record with uuid "x-devonthink-item://73B8A153-22D6-49B1-BAC7-BF4EE7F662CE"
	set color of rec to {65535, 0, 0}
	set c to color of rec
	log c
end tell

output

(*64633, 466, 1797*)

Shouldn’t that be “65535, 0, 0” instead?

Disclaimer I tried the same with Numbers and saw the same result. So, it’s not a DT issue. But perhaps some knowledgeable person can tell me what’s going on there – me doing something stupid or Apple messing things up behind the scenes?

No idea. The internal RGB values are not the ones returned by AppleScript.

I can’t give you a specific conversion but I think this is returning values based on the color profile…

That’s plausible. Thank you!