trigerred script - question about UI

Discovering DT, I try to build an applescript attached to a group (folder) that activate a view (columns or lines or both,…) when Think window is refreshed.
In the dictionary, I don’t found such properties/method. Is it necessary to use system-events ? Authors have any suggestions ?
Best Regards

Michel

That’s currently not possible without using system events.

After some researchs and tests, it is unable to tell process of DT - by chance keystocke exists for this menu/button - see example :

on triggered(theRecord)
	tell application "System Events"
		(* - don't work -
		tell process "DEVONthink Pro"
			-- GUI Scripting statements:
			click menu item "as Columns" of menu 1 of menu bar item "View" of menu bar 1
			
		end tell*)
		-- fortunately keystroke for this menu or window button "View"
		keystroke "3" using {command down, option down}
		beep
	end tell
	
end triggered