UUID of a Database

Stupid question I am sure but I cannot work out how to get the UUID of a database? I have three different databases and want to specify one in a script but cannot seem to see in properties/info of the database this detail?
Can anyone point me in the right direction?

Could be prettier, but it works:

tell application id "com.devon-technologies.thinkpro2"
	set theDatabase to current database
	set this_link to "ID: " & (id of theDatabase as string) & " " & (name of theDatabase as string) & " " & ("x-devonthink-item://" & uuid of theDatabase as string)
	set report_link to "Database UUID: " & this_link & return
	set theDatabase to the current database
	create record with {name:"Open Database", type:rtf, rich text:report_link} in incoming group of theDatabase
end tell

You’re a genius.
Thank you.
Why is this so difficult?

It’s not complicated. The core is:

set this_link to “x-devonthink-item://” & uuid of the current database

The rest of the code is prettification (or uglification as the case may be :unamused: )