How do I create a new window?

The script:

make new search window with properties {results:theResultList, index:1}

results in an error:


This leaves me at a loss.

What, if any, is the right way to create a think window in general, and, in particular, a search window?


The only possibilities are system events or user interface scripting. Here’s a simple example:

tell application id "com.devon-technologies.thinkpro2"
	set theResults to search "Test"
	if not (exists search window 1) then tell application "System Events" to keystroke "f" using {command down, shift down}
	set results of search window 1 to theResults
end tell

Thank you, Christian, that worked.