You would use something like this:
from java.awt import Window
from javax.swing import SwingUtilities
allWindows = system.gui.getOpenedWindows()
if len(allWindows)>0:
topWindow = SwingUtilities.getAncestorOfClass(Window, allWindows[0])
topWindow.toFront()
but you would want to have some property change scripts and maybe put this in a custom method to call whenever. This will allow you to only notify for updates of tags on the page based on what you configure to actually fire this event.
credit: