Open document as a tab into existing window?

A common workflow for me is to have my main database window open, as well as an additional window with a document in it (i.e. double-click a document in the database, it opens into a new window).

Is there a way to send other documents in the database to the tabs of the open window? Only way I’ve found so far is to have a RTF file in the window, drag a reference to the file into the RTF, then open that reference in a tab.

You can open tabs (via Command-clicking on links, Option-double-clicking on items or the contextual/action menus) only in the same window (if possible) or in a new window. But it’s doable via AppleScript:


tell application id "com.devon-technologies.thinkpro2"
	set theSelection to selection of viewer window 1
	repeat with theRecord in theSelection
		open tab for record theRecord in document window 1
	end repeat
end tell