Search window [DevonThink]

I am so sorry Christian, I posted my question about scripting the search window in the wrong forum. I would like to script a search in DevonThink and not DevonAgent, something like:

display dialog "Search string :"
set this_result to (text returned of the result)
tell application "DEVONthink Pro"
	search this_result in "predefined directory"
end tell

I will use these scripts with 4 or 5 directories I regularly use. But I can’t figure out how to display the result.

Sorry again for the trouble and time lost,


Although it’s possible to search via AppleScript, it’s not (yet) possible to script the search window.