Set window attribute from sciptable