processing of "search" command

Hi there,
I’m trying to process the result of the ‘search’ command.

For example:
tell application “DEVONthink Pro”
set myContent to search “myHead” in current database
set x to item 1 of myContent
end tell

result:
content id 18932 of database id 2 of application “DEVONthink Pro”

How can I use the result in a script to query further, for example the ‘reference URL’ of the result ?

Thanks in advance

Here’s a basic example:


tell application "DEVONthink Pro"
	set myContent to search "test" in current database
	set theReferenceURL to reference URL of item 1 of myContent
end tell

thanks, that’s what I was looking for