Make a Safari window whose title matches a string visible

I keep open many tabs in many windows in many applications on two screens. There are a few windows I want to be able to get back to no matter what application/window/tab I am currently in. For instance, the frontmost window of Safari whose name contains Keyboard Maestro. Here’s a starting point for what could be the basis of much generalization and customization.

tell application "Safari"
	activate
	set theWindows to the windows whose name contains "Keyboard Maestro"
	if the (count of theWindows) is greater than 0 then ¬
		set the index of the first item of theWindows to 1
end tell