setting another Safari window frontmost

This should be easy but… How to get a window in Safari to the front on basis of its window name or URL

Thanks

Hi Eddy,

Try this:

set windowName to "page title" -- Change to needed
tell application "Safari"
	activate
	set index of (first window whose name is windowName) to 1
end tell

Best wishes

John M

Thanks John, worked like a dream

If everything would be that “easy” :rolleyes: